Thread overview
[Issue 10117] New: Support C++ class-scope static variables
May 19, 2013
Igor Stepanov
Jun 01, 2013
Walter Bright
May 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10117

           Summary: Support C++ class-scope static variables
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: wazar.leollone@yahoo.com


--- Comment #0 from Igor Stepanov <wazar.leollone@yahoo.com> 2013-05-19 08:34:31 PDT ---
//C++
class CPPTest1
{
    static int cppfield;
};

int CPPTest1::cppfield = 42;

//D
extern(C++) struct CPPTest1
{
   extern __gshared int cppfield;
}

***************************************
//C++
class CPPTest1
{
    static int dfield;
};


//D
extern(C++) struct CPPTest1
{
   __gshared int dfield; //only __gshared D static variables can be supported.
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 01, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10117



--- Comment #1 from github-bugzilla@puremagic.com 2013-05-31 17:55:17 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/83096425d641ab2bdbbf153b3a4998b3fb430dd2 fix Issue 10117 - Support C++ class-scope static variables

https://github.com/D-Programming-Language/dmd/commit/be3653bc3e80938a177e7bffda69ff00391bc558 Merge pull request #2053 from IgorStepanov/cppstaticvar

fix Issue 10117 - Support C++ class-scope static variables

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 01, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10117


Walter Bright <bugzilla@digitalmars.com> changed:

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


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