How do you get T from shared(T) ?

tcak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Sep 28 07:07:22 PDT 2014


On Sunday, 28 September 2014 at 09:11:07 UTC, Marco Leise wrote:
> For head-unshared there is `static if (is(T U : shared U))`.
> But how do you get the unshared type for anything from `shared
> void*` to `shared uint` ?

shared int a;

int b = cast()a;


More information about the Digitalmars-d-learn mailing list