On Sat, 14 Jun 2014 01:24:03 +
Mike Franklin via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
In other words, is 'shared __gshared' redundant?
Redundant? Not exactly.
__gshared makes it so that the variable is treated like a C variable - it's
not in TLS - but its _type_ is
In other words, is 'shared __gshared' redundant?
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,