Confusion over basic Array new:
Tim Olson
tim at jumpnet.com
Sat Sep 19 01:40:46 UTC 1998
>Tim Olson:
>> It might work for most cases, but what about, for example, Metaclass?
>> Metaclass overrides new from Behavior to prevent multiple metaclasses
>> from being created. If the new and new: messages were intercepted more
>> "downstream" by Object class, then Metaclasses couldn't do special things
>> like this...
>
>Tim, Object class is not on the inheritence chain for instances of Metaclass.
>See code snippet (A) below... This means that the behavior of
>instances of Metaclass (metaclasses) will be unaffected by modifications
>of Object's class-side methods.
Uh, right you are -- thanks for the catch!
-- tim
More information about the Squeak-dev
mailing list
|