On 2002-10-14 at 19:58:50, Piers Cawley wrote: > I would expect Class to inherit from Object (along with everything > else). It might be worth looking at a Smalltalk image or two at this > point... You might want to look at _Putting_Metaclasses_To_Work_ by Danforth and Forman - or at Ruby, which follows the same model (with one extra class introduced into the hierarchy).
In this model, classes are objects, but they are not instances of their superclass. The "subclass" relation is separate from the "instance of" relation. The minimal environment is this: Object is an instance of Class. Class is also an instance of Class - that is, an instance of itself. Class is a subclass of Object. Ruby's small variation consists of a class called Module between Class and Object: Module (also an instance of Class) is a subclass of Object and the direct superclass of Class. -- Mark REED | CNN Internet Technology 1 CNN Center Rm SW0831G | [EMAIL PROTECTED] Atlanta, GA 30348 USA | +1 404 827 4754