On Saturday, 2 February 2019 at 16:56:45 UTC, Ron Tarrant wrote:
Hi guys,
I ran into another snag this morning while trying to implement
a singleton. I found all kinds of examples of singleton
definitions, but nothing about how to put them into practice.
[...]
If you haven't already been to the d-idioms site it is well worth
a look:
https://p0nce.github.io/d-idioms/
It has a singleton example that you may find useful.
https://p0nce.github.io/d-idioms/#Leveraging-TLS-for-a-fast-thread-safe-singleton
bye,
norm