[phobos] what happend to std.pattern idea?
Igor Lesik
curoles at yahoo.com
Thu Jan 30 20:51:29 PST 2014
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:
https://github.com/curoles/webos/blob/master/src/d/gem/Singleton.d
usage:
auto my1 = Singleton!MyClass.get();
auto my2 = Singleton!MyClass.get();
assert(my2 is my1);
Thanks,
Igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20140130/3ab548d7/attachment.html>
More information about the phobos
mailing list