[Issue 3380] [tdpl] typeid(obj) should return the dynamic type of the object

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 20 19:34:53 PST 2009


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



--- Comment #3 from Andrei Alexandrescu <andrei at metalanguage.com> 2009-11-20 19:34:52 PST ---
(In reply to comment #2)
> I think you meant:
> 
>    auto a = new B;

Sorry. I actually meant:

A a = new B;

meaning that the static type is different from the dynamic type.

-- 
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