The singleton design pattern in D, C++ and Java

Ali Çehreli acehreli at yahoo.com
Fri Jul 16 10:18:30 PDT 2010


Justin Johansson wrote:
> Which language out of C++, D and Java does this classical
> "GoF" (gang-of-four***) design pattern best?

Are we still talking singleton? I thought that it is considered an 
anti-pattern already. :)

As a teaser: What problem does it solve that can't be solved by creating 
just one object of a type?

Ali

"Forgive Me Father, for I Have Singleton’ed" - Kevlin Henney


More information about the Digitalmars-d mailing list