On 02/13/2016 10:58 AM, Vladde Nordholm wrote:
Hello. I have this singleton,------------------------------------------------------ class Singleton { private this() {} static __gshared typeof(this) instance = new this; } ------------------------------------------------------ and I wonder if it has any weaknesses. Or is there a better way to make a Singleton? ,vladde,
David Simcha's DConf 2013 presentation has a singleton implementation at 27:55:
https://www.youtube.com/watch?v=yMNMV9JlkcQ Ali