Testing some singleton implementations

Stanislav Blinov stanislav.blinov at gmail.com
Fri Jan 31 02:50:56 PST 2014


On Friday, 31 January 2014 at 10:27:28 UTC, Namespace wrote:

> Why is someone interested in implementing such an Ani Pattern 
> like Singletons?

Why is someone overquoting without reason? ;)

> In most of all cases Singletons are misused.

Any sort of shared (as in, between threads) resource is often a 
singleton. A queue for message passing, concurrent GC, a pipe... 
Even it doesn't have SINGLETON (yes, in all capitals to irritate 
reviewers) in its name.


More information about the Digitalmars-d mailing list