[Issue 12475] New: extend typeof() to return '__gshared(type)'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 26 10:41:16 PDT 2014


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 at puremagic.com
        ReportedBy: ketmar at ketmar.no-ip.org


--- Comment #0 from Ketmar Dark <ketmar at ketmar.no-ip.org> 2014-03-26 10:41:14 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: -------


More information about the Digitalmars-d-bugs mailing list