2010/1/13 Michael Rueger <m.rueger@acm.org>:
On 1/13/2010 11:13 AM, Igor Stasenko wrote:
Next step is removing a direct reference to Sensor global, and replace it with something like:
self eventSensor
No, that is fixing a sympton, not the problem. (John will love this ;-) )
You would still be polling the sensor. There should be no references to Sensor -directly or indirectly- at all. The system should be completely event driven and not be allowed to ask for anything. I know it is just so comfortable to do this, but a very bad idea.
Totally agree with you. But removing it from use, means changing the logic in places where it using it. And given that you got 166 refs to Sensor.. imagine what amount of work it means. So, see my proposal as an intermediate(transitional) step.
This basically goes back to introducing global references to ActiveHand etc, something that really needs to be removed as well.
Michael
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.