0

I was under the impression that singleton is the proper design pattern which adds the flexibility for the design to evolve, extend, etc. , where globals are just a workaround. But in a question asked in this forum I was told try to avoid singleton pattern and go for global non-member functions. What is the reason for this?

Izza
  • 2,389
  • 8
  • 38
  • 60
  • 2
    Let me [link to the post again](http://jalf.dk/blog/2010/03/singletons-solving-problems-you-didnt-know-you-never-had-since-1995/). – Georg Fritzsche Jan 28 '12 at 05:02

1 Answers1

1

Here is a reference page: Global vs Singleton in .NET

In my understanding, with singleton, I can control when the object is initialized. But with globals, it's a little difficult to do it.

Community
  • 1
  • 1
flypen
  • 2,515
  • 4
  • 34
  • 51