Re: [Widelands-public] Singleton Map_Object
Status: Beta
Brought to you by:
sirver
From: Nicolai <pr...@up...> - 2007-08-31 02:16:46
|
Am Donnerstag 30 August 2007 17:10:16 schrieb Erik: > Florian Weber skrev: > > But keeping it as a global variable is doubleplus ungood, methinks. > > I don't really know about singletons, just that it is defined as "a set > with exactly one element". What is the difference between a singleton > and a global variable? How is a global variable more "ungood" than a > singleton? Is a singleton like a kind of global variable, but with less > feeling of guilt? Yes - that's pretty much why I don't like them ;) cu, Nicolai |