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).
ok
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 basicNew basicSpace: BlUniverse default runningSpace; initialize; yourself
thatâs perfectly fine :)
this is how I intended to fix it.
other possibility is to lazy initialise space with the default universe.
maybe, I donât know. thanks Alain
Esteban
Thanks Alain
Esteban
On 25 Feb 2016, at 09:52, stepharo <stepharo@free.fr <mailto: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 :(