C++ interop; object destruction

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 22 07:24:38 PDT 2017


Nicholas Wilson wrote:

> On Thursday, 22 June 2017 at 12:52:26 UTC, Manu wrote:
>> How do I properly implement object destruction of extern(C++) classes 
>> (with
>> virtual destructors)?
>>
>> I'm not going to embarrass myself by pasting some of my attempts to 
>> achieve this goal to date.
>
> I take it you tried calling super.~this() already? that would be my first 
> thought.

that won't work, 'cause `~this` is not a valid symbol. yet `super.__dtor()` 
will work.


More information about the Digitalmars-d mailing list