[Issue 17203] New: singleton as mixin
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Feb 19 14:34:40 PST 2017
https://issues.dlang.org/show_bug.cgi?id=17203
Issue ID: 17203
Summary: singleton as mixin
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: greeenify at gmail.com
http://www.digitalmars.com/d/archives/digitalmars/D/The_singleton_design_pattern_in_D_C_and_Java_113474.html
would be nice to have this as a template mixin for simple reuse, e.g.
class Foo {
mixin Singleton;
}
--
More information about the Digitalmars-d-bugs
mailing list