Bug 17203 – singleton as mixin

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-02-19T22:34:40Z
Last change time
2024-12-01T16:29:37Z
Assigned to
No Owner
Creator
Seb
Moved to GitHub: phobos#9709 →

Comments

Comment #0 by greeenify — 2017-02-19T22:34:40Z
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; }
Comment #1 by robert.schadek — 2024-12-01T16:29:37Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9709 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB