Re: typeid, typeinfo, classinfo not returning most derived

2019-06-06 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 6 June 2019 at 20:22:00 UTC, Amex wrote: I i = new D(); It is a bizarre quirk, I think because interfaces do not necessarily point to objects with RTTI (though this can be statically determined, so I am not sure that is valid), but when you do typeid on an interface, it gives

typeid, typeinfo, classinfo not returning most derived

2019-06-06 Thread Amex via Digitalmars-d-learn
- x 0x004b71e0 {Interface for main.I} {m_init={length=0 ptr=0x}, name="main.I", vtbl={length=0 ptr=0x}, ...} object.TypeInfo_Class {TypeInfo_Class} [TypeInfo_Class]D0006: Error: Type resolve failed m_init {length=0 ptr=0x}