__gshared this()

Peter Alexander via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 22 01:03:19 PDT 2014


On Tuesday, 22 July 2014 at 07:27:46 UTC, Manu via Digitalmars-d 
wrote:
> We have:
>   this()   // instance constructor
>   static this()  // thread-local static constructor
>
> But what I need is:
>   __gshared this()   // not-thread-local static constructor (?)

shared static this() { ... }

http://dlang.org/class#SharedStaticConstructor


More information about the Digitalmars-d mailing list