Singleton question (shared class)
Mars
- at -.-
Wed Jan 25 23:47:05 PST 2012
On Wednesday, 25 January 2012 at 23:40:38 UTC, Andrew Wiley wrote:
> In the language spec, shared is supposed to guarantee this, but
> it
> currently doesn't. There was a conversation where pretty much
> every
> safe variant of the singleton pattern was discussed recently:
> http://www.digitalmars.com/d/archives/digitalmars/D/learn/Singleton
> Pattern 31406.html
Those are using shared though, which seems supoptimal for my
needs (see first post).
Mars
More information about the Digitalmars-d-learn
mailing list