[dmd-internals] Destructors are not virutal
Martin Nowak
dawg at dawgfoto.de
Tue Jan 24 04:39:43 PST 2012
On Tue, 24 Jan 2012 12:35:42 +0100, Daniel Murphy <yebblies at gmail.com>
wrote:
> On Tue, Jan 24, 2012 at 5:56 PM, Walter Bright <walter at digitalmars.com>
> wrote:
>>
>> Because it's handled specially - not through the vtbl[].
>
> Hmmm ok. Is the an optimization or is it essential? I don't suppose
> it's documented anywhere?
>
> I'm trying to improve the c++ interop and this wasn't as I expected.
> I can always special case it for c++ classes.
I case it might help you, I wrote some code to wire up C++ destructors
with D's finalizer.
https://gist.github.com/1391734
More information about the dmd-internals
mailing list