[Issue 9915] New: Typeid .name inconsistent between templated classes	and structs
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Apr  9 20:13:10 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=9915
           Summary: Typeid .name inconsistent between templated classes
                    and structs
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: callumenator at gmail.com
--- Comment #0 from callumenator at gmail.com 2013-04-09 20:13:09 PDT ---
DMD 2.062:
struct S(T){}
struct SS(T){}
struct SSS(T){}
class C(T){}
class CC(T){}
class CCC(T){}
void main()
{
    import std.stdio;
    writeln(typeid(S!(SS!(SSS!(int)))).name); // S!(SS!(SSS!(int))).S
    writeln(typeid(C!(CC!(CCC!(int)))).name); // C!(CC).C
}
It would be good to have the typeid().name field contain the full type name in
the case of templated classes, as it already does for templated structs.
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list