On 12/13/2017 07:57 PM, IM wrote:

>      - Is this the idiomatic way to define a singleton in D?:
> https://gitlab.com/3d_immortal/libdtasks/blob/master/src/tasks/TaskSystem.d#L24.
> I got this from Ali's book.

I think you got it from Adam D. Ruppe's book.

David Simcha's DConf 2013 presentation has Low-Lock Singleton Pattern at 28 minute mark here:

  https://www.youtube.com/watch?v=yMNMV9JlkcQ&feature=youtu.be&t=1675

Ali

Reply via email to