Am 19.01.17 um 15:51 schrieb Siemen Baader:

Wouldn't a class instance variable be better? I want new singletons for every subclass. http://rmod-pharo-mooc.lille.inria.fr/MOOC/Slides/Week3/C019-W3S03-Basic-Variables.pdf

I would also have used super new, why BasicNew? But my wish to create subclasses seems to answer that already.

super new might cause problems if you also want singletons for all subclasses and at least some of their subclasses and subclasses (1st generation) throw an exception in their #new.

Reply via email to