Should every kernel class x provide support for (x new) printString and (x new) hash

Klaus D. Witzel klaus.witzel at cobss.com
Mon Jan 22 17:26:47 UTC 2007


Hi Ralph,

on Mon, 22 Jan 2007 16:54:42 +0100, you wrote:

>> Me too. #new can only have one implementor (the primitive call done in
>> Behavior) plus, ((aClass new) class == aClass) must hold, otherwise  
>> one's
>> rather lost instead of being excited about Smalltalk :)
>
> In fact, #new has 103 implementors in Squeak 3.9.

Mea culpa, must have had slot #basicNew in mind (therefore mentioned the  
primitive call) while writing about slot #new. Crap. Thanks.

> But it is unusual
> for #new to return an instance of a different class.

Right.

/Klaus

> -Ralph Johnson
>
>





More information about the Squeak-dev mailing list