how to get typeid of extern(C++) classes?

timotheecour timothee.cour2 at gmail.com
Fri Feb 16 20:21:41 UTC 2018


On Friday, 16 February 2018 at 00:42:02 UTC, Timothee Cour wrote:
> is there a way to get typeid of extern(C++) classes (eg for 
> ones in
> dmd/astbase.d but not limited to that) ?

as a workaround, could the compiler insert (eg, depending on a 
version(insert_typeid)) a virtual method in each extern(C++) 
class eg:
`const(char)* __typeid()` ?


More information about the Digitalmars-d mailing list