well��� is not forbidden, of course���but many frameworks use basicNew as a way of obtain *explicitly* non-initialized objects (voyage does that, for instance).
that���s why we have new and basicNew :)
the space may be needed during #initialize.
this is why the initialization of the space is done in
basicNew.
But ok, we will fix that.you can define new as:new^ self basicNewbasicSpace: BlUniverse default runningSpace;initialize;yourselfthat���s perfectly fine :)
other possibility is to lazy initialise space with the default universe.
EstebanThanks
Alain
EstebanOn 25 Feb 2016, at 09:52, stepharo <stepharo@free.fr> wrote:
BlElement class>>basicNew
"Redefined to set the space of the element"
^ super basicNew basicSpace: BlUniverse default runningSpace
why redefining new is not enough?
Ok now back to the mooc videos :(