problems with Rebindable

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 21 11:37:56 PDT 2016


On Saturday, 21 May 2016 at 13:36:02 UTC, chmike wrote:
>     static Info one()
>     {
>         static auto x = Info(new Obj("I'm one"));
>         return x;
>     }
>     static Info two()
>     {
>         static auto x = Info(new Obj("I'm two"));
>         return x;
>     }

FYI those are thread local variables.


More information about the Digitalmars-d-learn mailing list