[squeak-dev] Re: About classVariables

Paolo Bonzini bonzini at gnu.org
Mon Oct 13 09:30:31 UTC 2008


Martin Beck wrote:
> Craig Latta wrote:
>> Hi Stef--
>>
>>> To my stupefaction I discovered that the classVariables of a class are
>>> not the same as the ones of its metaclass.
>>>
>>> TheRoot classVarNames ~= TheRoot class classVarNames
>>>
>>> Does any body have some ideas why this is like that? For me this is a
>>> conceptual bug.
> 
> TheRoot classPool = TheRoot class classPool
> 
> evaluates to true...

Indeed, I would have expected classVarNames to be just "self classPool
keys" or "self classPool keys inject: '' into: ' [:a :b | a,b,' ']".

Paolo




More information about the Squeak-dev mailing list