[Issue 13421] New: disallow __gshared members without static

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 4 02:50:42 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13421

          Issue ID: 13421
           Summary: disallow __gshared members without static
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: schuetzm at gmx.net
                CC: briancschott at gmail.com

It's surprising that __gshared members are implicitly static. Example:

http://forum.dlang.org/thread/dkqsqyatiwbwyrojpfxb@forum.dlang.org

__gshared members without an explicit `static` should be deprecated with an
appropriate message and later disallowed.

(This would also be an excellent candidate for Brian's dfix.)

--


More information about the Digitalmars-d-bugs mailing list