[Issue 3380] New: [tdpl] typeid(obj) should return the dynamic type of the object
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 8 19:31:53 PDT 2009
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: nobody at puremagic.com
ReportedBy: andrei at metalanguage.com
--- Comment #0 from Andrei Alexandrescu <andrei at 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: -------
More information about the Digitalmars-d-bugs
mailing list