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

Ralph Johnson johnson at cs.uiuc.edu
Mon Jan 22 15:54:42 UTC 2007


> 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.  But it is unusual
for #new to return an instance of a different class.

-Ralph Johnson



More information about the Squeak-dev mailing list