2009/4/20 Michael Rueger <m.rueger@acm.org>:
Igor Stasenko wrote:
Another thing, that i think it would be better is to not have an instance side methods. Since we never need a multiple instances of InputEventFetcher in system, then instead of singleton scheme, it would be better to move all methods and ivars to class side - simply because a class is already singleton. This will help to avoid discrepancies, like we just met.
-10000
Using singleton instances is a proven design pattern. And, you never know if you won't need more than one input fetcher ;-)
Clearly, this is not the case, because your code hosted on a single VM ;) and its the only source of events for fetcher.
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.