www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Test if a class is extern(c++)

reply Benjamin Thaut <code benjamin-thaut.de> writes:
In particular I want to know if the vtable of the class has the 
class info member.
Is there any way to do this at compile time? At runtime?

Kind Regards
Benjamin Thaut
Apr 10 2017
parent reply BBasile <b2.temp gmx.com> writes:
On Monday, 10 April 2017 at 18:32:05 UTC, Benjamin Thaut wrote:
 In particular I want to know if the vtable of the class has the 
 class info member.
 Is there any way to do this at compile time? At runtime?

 Kind Regards
 Benjamin Thaut
Hello, I have a trait for this: https://github.com/BBasile/iz/blob/master/import/iz/types.d#L650
Apr 10 2017
parent Benjamin Thaut <code benjamin-thaut.de> writes:
On Monday, 10 April 2017 at 18:56:42 UTC, BBasile wrote:
 Hello, I have a trait for this:

 https://github.com/BBasile/iz/blob/master/import/iz/types.d#L650
Hi BBasile, I think your trait is a good starting point for my needs. Thanks.
Apr 10 2017