www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7333] New: interfaceToC should mention __gshared

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7333

           Summary: interfaceToC should mention __gshared
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody puremagic.com
        ReportedBy: jmdavisProg gmx.com



PST ---
If I'm not mistaken, C global variables should be marked with __gshared for
them to work correctly, since without that, they're end up being thread-local
per D's type system.

http://dlang.org/interfaceToC.html

does not mention __gshared at all. It should explain that __gshared should be
used on C global variable declarations in order for them not be treated as
thread-local by the compiler.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 20 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7333


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |WORKSFORME



01:30:40 PST ---
It does now.

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