Original Post
What is the benefit of using a singleton pattern vs. one global
instance of a class?
sure, you have protection against accidentally creating a new
instance, but is that it?
i''m aware that 9 times out of 10 you wont need a singleton, and
i''m guessing that my current situation is one of those times i''ll
pass.
I have a timer class that is conflicting delay counts due to
GetTickCount. the solution i''ve decided on, is to create a global
"clock" class that will update all of the other timer instances.
so i guess my question is this: when do YOU use singletons, and
why?
-eldee
;another space monkey;
[ Forced Evolution Studios ]
Do NOT let Dr. Mario touch your genitals. He is not a real doctor!