How do you do a typeid(obj) to get the most derived class that it is, or string?

Enjoys Math via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 1 22:20:48 PST 2016


class A {

}

class B : A {

}

class C : B {

}

auto b = new B();

typeid(b) == "B"

?

Thanks.


More information about the Digitalmars-d-learn mailing list