Does __gshared have shared semantics?

Kapps via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 13 18:25:18 PDT 2014


On Saturday, 14 June 2014 at 01:24:05 UTC, Mike Franklin wrote:
> In other words, is 'shared __gshared' redundant?

All __gshared does is makes the variable not go into thread-local 
storage, nothing more. Shared does this, as well as modify the 
type to be shared(T) instead of just T. So yes, it's redundant.


More information about the Digitalmars-d-learn mailing list