"__gshared static" versus "static __gshared"

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Sat Jan 29 01:56:39 PST 2011


On Sat, 29 Jan 2011 08:47:21 +0000, %u wrote:

> Is this a bug?
> 
>    __gshared static i;
> 
> makes i be thread-local, while
> 
>    static __gshared i;
> 
> makes it be shared.

If that's the case, then it is definitely a bug.  The order of attributes 
shouldn't matter.

-Lars


More information about the Digitalmars-d-learn mailing list