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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Ketmar Dark <[email protected]> 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: -------