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

2018-02-16 Thread Stefan Koch via Digitalmars-d
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) ? C++ exposes it via typeid so in theory all the info is there ; I would need it at least for debugging (eg if RTTI is not

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

2018-02-16 Thread Jonathan M Davis via Digitalmars-d
On Saturday, February 17, 2018 00:23:01 Meta via Digitalmars-d wrote: > On Friday, 16 February 2018 at 00:42:02 UTC, Timothee Cour wrote: > > C++ exposes it via typeid so in theory all the info is there ; > > It's been awhile since I've written any C++ code, but as I > remember it, this type of

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

2018-02-16 Thread Meta via Digitalmars-d
On Friday, 16 February 2018 at 00:42:02 UTC, Timothee Cour wrote: C++ exposes it via typeid so in theory all the info is there ; It's been awhile since I've written any C++ code, but as I remember it, this type of type info is not available unless you enable it with a (C++) compiler switch.

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

2018-02-16 Thread Steven Schveighoffer via Digitalmars-d
On 2/15/18 7:42 PM, 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) ? C++ exposes it via typeid so in theory all the info is there ; I would need it at least for debugging (eg if RTTI is not enabled for all compilers

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

2018-02-16 Thread timotheecour via Digitalmars-d
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

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

2018-02-15 Thread Timothee Cour via Digitalmars-d
is there a way to get typeid of extern(C++) classes (eg for ones in dmd/astbase.d but not limited to that) ? C++ exposes it via typeid so in theory all the info is there ; I would need it at least for debugging (eg if RTTI is not enabled for all compilers or in release mode that's fine so long