Hi,
I was watching DConf13 David Simcha's talk recently ... what happened to the idea of creating std.pattern? I do not see it phobos.
I have Singleton design pattern implementation based on David's code:
usage:
auto my1 = Singleton!MyClass.get();
auto my2 = Singleton!MyClass.get();
assert(my2 is my1);
Thanks,
Igor