__gshared static
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Apr 24 11:05:22 PDT 2015
On 4/24/15 1:22 PM, "=?UTF-8?B?Ik3DoXJjaW8=?= Martins\"
<marcioapm at gmail.com>\"" wrote:
> Hi!
>
> I just stumbled across what seems like a misunderstanding on my side
> about these keywords. Can someone help clarify these for me?
>
> ```
> __gshared static int foo;
> __gshared int foo;
> ```
>
> What are the storage and semantic differences between those two, if any?
These are the same, __gshared overrides static.
-Steve
More information about the Digitalmars-d-learn
mailing list