[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Classless Utilities?
On Saturday 13 May 2006 06:16, Kris Schnee wrote:
> centralize the jukebox's data, eg. the set of loaded sounds. Otherwise
> I'd have bunch of functions and variables lying around in the music
> file, not linked to a particular object. It seems like the right thing
btw modules are objects too, so in a way in that case the functions and
variables are tied to a particular object: your music module.
probably the singleton approach you already reported implementing in a later
post is cleaner. but not even that is always needed.
> Kris
~Toni