--- Begin Message ---
> 
> 
> 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 <[email protected] 
>>>> <mailto:[email protected]>> 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 :(
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
>> 
>> 
> 


--- End Message ---

Reply via email to