www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - "__gshared static" versus "static __gshared"

reply %u <wfunction hotmail.com> writes:
Is this a bug?

   __gshared static i;

makes i be thread-local, while

   static __gshared i;

makes it be shared.
Jan 29 2011
next sibling parent "Lars T. Kyllingstad" <public kyllingen.NOSPAMnet> writes:
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
Jan 29 2011
prev sibling parent Trass3r <un known.com> writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4419
Feb 23 2011