Singleton vs Global

Started by
9 comments, last by clabinsky 22 years, 3 months ago
Voila! How can I be so stupid. I knew that a static keeps its value even if local to a function though I did oversee that in this case, you are right!

So the static CScreen m_cScreen is not needed at all then.

Thanks a whole lot for waking me up!
Why make it simple when you can make it sooo nice and complicated?

This topic is closed to new replies.

Advertisement