Question about initialize

Marcus Denker denker at iam.unibe.ch
Tue Nov 23 11:10:17 UTC 2004


Am 23.11.2004 um 12:06 schrieb Frank Shearar:

> Joseph Frippiat <frippiat.j at kst.be> wrote:
>> Hi,
>>
>> What is the utility to have 2 initialize methods, one for the
>> class and one
>> for the instance.  When are they called ?
>>
>> Thanks
>>
>> Joseph
>
> The crucial thing to remember here is that a class is itself an 
> instance(*). When you call
....

> (*) I can't remember what type a class is - Class? Metaclass?
>
>

The class of "SomeClass" ist "SomeClass class", which is an instance of 
"Metaclass" and an indirect
subclass of "Class".

           Marcus




More information about the Squeak-dev mailing list