On 5/6/13, dsimcha <[email protected]> wrote: > On the advice of Walter and Andrei, I've written a blog article > about the low-lock Singleton pattern in D.
Personally this covers it for me:
final abstract class singleton
{
static:
void foo() { }
int f;
}
void main()
{
singleton.foo();
singleton.f = 1;
}
Never needed anything more complex than that. :p
