Confusion over basic Array new:
Tim Olson
tim at jumpnet.com
Thu Sep 17 23:52:47 UTC 1998
Michael Klein writes:
>What do people think about putting #new & #new: as class-side
>methods in Object so that newbies can figure this one out without
>having to be introduced to the "prime anomoly"?
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
More information about the Squeak-dev
mailing list
|