[newbie] how does Object implement new?

Karl Wilson khwilson at bigfoot.com
Thu Mar 29 19:37:34 UTC 2001


Thanks Jecel,

I had the "class" button selected when looking at Object and thought 
I was looking at the methods which the Object class understood - 
didn't realize there was a whole other hierarchy on the class side - 
why doesn't it say something like:

ProtoObject class subclass #Object class

	instanceVariableNames: ''

and why can't you spawn a class side heirarchy?

Behavior
	ClassDescription
		Class
			ProtoObject class
				Object class

I am sure this will all make sense after awhile. Thanks again.

Karl

>the first thing you must ask yourself is if the method you are looking
>for is understood by instances of Object (and so is found in Object
>itself) or by Object itself (and so is found in "Object class").
>
>#new is the second case (as you can see by which button is selected in
>the system browser: instance/comment/class) and so you must ask who is
>the superclass of "Object class" and *not* who is the superclass of
>"Object". It is easier if you "Object class inspect" and then keep
>following the superclass links. You will end up in "Behavior class"
>like you (almost) expected.
>
>-- Jecel





More information about the Squeak-dev mailing list