Singleton Pattern
Suliman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jul 9 13:35:21 PDT 2016
On Thursday, 5 January 2012 at 22:53:12 UTC, Ali Çehreli wrote:
> 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
Yeah, same question, what difference between singleton and
`static this()`?
More information about the Digitalmars-d-learn
mailing list