[Vm-dev] Re: Is SmallInteger a really too dangerous class?

Andreas Raab andreas.raab at gmx.de
Mon Dec 13 23:13:18 UTC 2010


On 12/13/2010 2:48 PM, Bert Freudenberg wrote:
> On 13.12.2010, at 13:06, Mariano Martinez Peck wrote:
>
>> sorry, it should be
>>
>> SmallInteger class >> initialize
>> self addInstVarName: 'Zaraza'.
>>
>> Notice I want to add a class variable to SmallIneteger, not instVar.
>
> This is not really a VM question. Class variables are held in a
> dictionary. The VM knows nothing about this.

And of course class vars are added by using #addClassVarName: not 
#addInstVarName:.

Cheers,
   - Andreas


More information about the Vm-dev mailing list