Singleton Pattern

Ali Çehreli acehreli at yahoo.com
Thu Jan 5 14:53:12 PST 2012


On 01/05/2012 02:15 PM, asm wrote:
> how can i implementing the singleton pattern in D?

Is singleton still alive? ;)

An idea is to instantiate the object in the module's static this().

Ali


More information about the Digitalmars-d-learn mailing list