[bloc] why redefining new is not enough?
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 :(
this is bad⦠redefining basicNew should not be done, never, never, never. thatâs why we have new and basicNew :) Esteban
On 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 :(
On 25 févr. 2016, at 11:49, Esteban Lorenzano <estebanlm@gmail.com> wrote:
this is bad⦠redefining basicNew should not be done, never, never, never. why ?
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. Thanks Alain
Esteban
On 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 :(
Well, it is not *important* for design what method is redefined new or basicNew in order to set space. My question is why do we need at all to set space? It means that element created (not added) while spaceA is running can not be used in or added to spaceB. The only reason that I know is a possibility to add global event listener to space while initializing an element. This must be fixed by having lazy addition of global event listeners. On Feb 25, 2016 9:55 AM, "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 :(
An we need NullSpace to be default value. On Feb 25, 2016 2:06 PM, "Aliaksei Syrel" <alex.syrel@gmail.com> wrote:
Well, it is not *important* for design what method is redefined new or basicNew in order to set space. My question is why do we need at all to set space? It means that element created (not added) while spaceA is running can not be used in or added to spaceB. The only reason that I know is a possibility to add global event listener to space while initializing an element. This must be fixed by having lazy addition of global event listeners. On Feb 25, 2016 9:55 AM, "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 :(
Can you create a bug entry? we should log the bloc design improvements to not forget them. Le 25/2/16 14:08, Aliaksei Syrel a écrit :
An we need NullSpace to be default value.
On Feb 25, 2016 2:06 PM, "Aliaksei Syrel" <alex.syrel@gmail.com <mailto:alex.syrel@gmail.com>> wrote:
Well, it is not *important* for design what method is redefined new or basicNew in order to set space. My question is why do we need at all to set space? It means that element created (not added) while spaceA is running can not be used in or added to spaceB. The only reason that I know is a possibility to add global event listener to space while initializing an element. This must be fixed by having lazy addition of global event listeners.
On Feb 25, 2016 9:55 AM, "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 :(
Aliaksei can you log this action somewhere? in a bloc bug entry? Stef Le 25/2/16 14:06, Aliaksei Syrel a écrit :
Well, it is not *important* for design what method is redefined new or basicNew in order to set space. My question is why do we need at all to set space? It means that element created (not added) while spaceA is running can not be used in or added to spaceB. The only reason that I know is a possibility to add global event listener to space while initializing an element. This must be fixed by having lazy addition of global event listeners.
On Feb 25, 2016 9:55 AM, "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 :(
participants (4)
-
Alain Plantec -
Aliaksei Syrel -
Esteban Lorenzano -
stepharo