basicNew design...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

basicNew design...

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?

Michael.


Reply | Threaded
Open this post in threaded view
|

Re: basicNew design...

Bert Freudenberg-3

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 -