Help with DMD internals

Manu turkeyman at gmail.com
Sun May 20 19:50:49 UTC 2018


On 20 May 2018 at 12:28, Manu <turkeyman at gmail.com> wrote:
>
> [...]

Then... next up, extern(C++) classes need to place __xdtor in the
vtable (posix uses 2 slots).
We need the vtable to match naturally, without advising people to add
a dummy method.

I also have a hack in progress to support `final ~this()` in
extern(C++) classes, which will omit it from the vtable (once it's in
there!), since there are also C++ classes without virtual destructors.

This work is hard... adding the dtor to the vtable freaks DMD out in
all sorts of ways and ICE's everywhere.


Any comments on any of these points appreciated. I don't know what I
don't know. There's probably reasons that these things aren't all done
already...


More information about the Digitalmars-d mailing list