On 23 June 2017 at 13:45, Danni Coy via Digitalmars-d <digitalmars-d@puremagic.com> wrote:


On Fri, Jun 23, 2017 at 10:52 AM, Nicholas Wilson via Digitalmars-d <digitalmars-d@puremagic.com> wrote:


I'm pretty sure he manually constructs the vtbl and inserts the virtual function into it, so it should just be a case of calling the virtual destructor.

Have a look at this DConf 2017 talk.

He is mapping C++ classes onto D structs IIRC.

Oh yeah that's right, that's a totally different ball-game :)