[dmd-internals] ClassInfo for C++ classes in DMD
Walter Bright via dmd-internals
dmd-internals at puremagic.com
Thu Jul 7 03:23:19 PDT 2016
On 7/7/2016 3:08 AM, Jacob Carlborg via dmd-internals wrote:
> Usually a C++ class in D doesn’t have any type info available, i.e. calling
> “object.classinfo” will return null. But for some reason the C++ classes
> (declared in D) in DMD will return a non-null value when calling
> “object.classinfo”, why is that?
C++ classes have no dynamic type info (i.e. what the most derived class is). But
they do have static type info.
More information about the dmd-internals