Issue 17203 - singleton as mixin
Summary: singleton as mixin
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Linux
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-19 22:34 UTC by Seb
Modified: 2024-12-01 16:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Seb 2017-02-19 22:34:40 UTC
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 dlangBugzillaToGithub 2024-12-01 16:29:37 UTC
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