www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12475] New: extend typeof() to return '__gshared(type)'

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

           Summary: extend typeof() to return '__gshared(type)'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ketmar ketmar.no-ip.org



PDT ---
i think that there should be either explicit trait to check if something was
declared as '__gshared', or typeof() should return '__gshared(type)' as it does
now for shared types. 'shared' and '__gshared' are mutually exclusive, so there
should be no big harm to just extend typeof().

sample:

shared int i0;
typeof(i0) returns 'shared(int)'

__gshared int i1;
typeof(i1) returns 'int'


propesed fix:

typeof(i1) should return '__gshared(int)'

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 26 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12475


Ketmar Dark <ketmar ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE



PDT ---
*** This issue has been marked as a duplicate of issue 12474 ***

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