http://d.puremagic.com/issues/show_bug.cgi?id=4419


Andrej Mitrovic <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]


--- Comment #5 from Andrej Mitrovic <[email protected]> 2012-12-20 
14:37:29 PST ---
> 1) Why is static and __gshared mutually exclusive, doesn't __gshared imply
static?

It implies the field is a property of the type, not the instance. It's *like*
static, but static == TLS, __gshared == global. I think maybe the OP thought
__gshared was a modifier you can apply to static, but it's not, __gshared can
be (and should be) used alone.

Both "static __gshared" and "__gshared static" should be rejected, because you
can't ask the compiler "make this field thread-local *and* global, and make it
a property of the type". It's either TSL or global, not both.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to