http://d.puremagic.com/issues/show_bug.cgi?id=3380

           Summary: [tdpl] typeid(obj) should return the dynamic type of
                    the object
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: and...@metalanguage.com


--- Comment #0 from Andrei Alexandrescu <and...@metalanguage.com> 2009-10-08 
19:31:52 PDT ---
class A {}
class B : A {}

void main() {
   auto a = new A;
   writeln(typeid(a));
}

Currently typeid only applies to a type and consequently returns static type
information. This bug report aims at merging classinfo into TypeInfo_class. We
need to therefore have typeid accept values.

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

Reply via email to