[Issue 14612] typeid(interface) returns TypeInfo_Class object
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jul 22 10:18:38 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14612
--- Comment #8 from Rainer Schuetze <r.sagitario at gmx.de> ---
> Actually _d_interface_cast is not so high cost so Object has no
> base class and implements no interfaces.
It's still a lot more than just a null check and reading a vtbl entry an
another indirection.
If the instance is from a deeply derived class, _d_interface_cast walks through
all base classes to find Object.
--
More information about the Digitalmars-d-bugs
mailing list