[newbie] how does Object implement new?
Karl Wilson
khwilson at bigfoot.com
Thu Mar 29 16:48:08 UTC 2001
Merrily working away on the _Squeak OO Design with Multimedia
Applications_ book. Joe the Box. I get curious about how "new" is
implemented.
How does Object (or ProtoObject) implement new?
When you write Box>>new (Box is a subclass of Object):
new
^super new initialize.
where is the new that it is finding?
I found Behavior>>new, which calls a primitive, which seems a likely
possibility, but I can't see how Object uses it?
What am I missing? I realize that this is the most basic of the
basic. It is highly unnerving to have it be such a mystery. I mean if
you are supposed to be able to find the implementation of almost
anything in the system, shouldn't you be able to easily see how
Object implements new?
8?(
Karl (revealing the depths of newbieness)
More information about the Squeak-dev
mailing list
|