virtual destructor in C++ integration: bug or me being stupid?

Atila Neves via Digitalmars-d-learn digitalmars-d-learn at
Wed Dec 30 02:49:14 PST 2015

On Tuesday, 29 December 2015 at 18:41:41 UTC, Adam D. Ruppe wrote:
> On Tuesday, 29 December 2015 at 18:32:23 UTC, Atila Neves wrote:
>> The problem here is that I don't know what the workaround is.
> The one I used (well, last time I tried this) was to just put a 
> dummy function in the D interface that is a placeholder for it.
> interface C++Class {
>    // at the same place as
>    void _dontCallMeIamjustadestructor();
>    void other_function_you_actually_want();
> }

Ugh. As long as it works... thanks!


More information about the Digitalmars-d-learn mailing list