> I've been using the isActivated flag sometimes, to turn on/off some 
> engines without removing them.
> I guess isDead is better since you don't have to add "if (!isActivated) 
> return;" in the go function?
isActivated (as I see it) serves a different purpose: it is for the
engine to decide whether it will run or not (such as the periodic engine
which runs only sometimes), whereas the dead flag is for the user to
activate/deactivate the engine without having to modify O.engines
directly (it cannot be done from an engine, requiring some hacks which
are less straightforward).

Cheers, Vaclav



_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to