in reply to Singleton vs Static

Furthermore, you might have more than one copy of a Singleton in a system. This usually comes up in a mod_perl environment. Unless you have a separate process that you communicate with for something like your DB or a bunch of constants, you end up having to have one instance of a singleton for each child process. In this situation, you want the singleton to be OO.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.