basicNew design...

Bert Freudenberg bert at impara.de
Sun Aug 20 09:59:07 UTC 2006


Am 20.08.2006 um 10:27 schrieb Michael van der Gulik:

> Why is the #basicNew method on the instance side of Behavior?  
> Should it not be further down the inheritance hierarchy, on the  
> class side of Object?
>
> Was there some reason to put it there rather than in the class side  
> of Object or ProtoObject?

Sure. Creating an instance is the responsibility of a Behavior.

You need to be able to create instances even without the parallel  
class hierarchy - earlier Smalltalks did fine without a "class side"  
at all. Even now people argue that the meta class hierarchy  
complicates matters more than it buys us.

- Bert -




More information about the Squeak-dev mailing list