Vtable for virtual functions in D
Mike Franklin
slavo5150 at yahoo.com
Thu Mar 8 04:37:08 UTC 2018
On Wednesday, 7 March 2018 at 22:02:17 UTC, sarn wrote:
> When I wrote Xanthe a year ago, I rolled my own classes using
> alias this and explicit vtables:
> https://gitlab.com/sarneaud/xanthe/blob/master/src/game/rigid_body.d#L15
> (I did this because normal D classes use the druntime library,
> and Xanthe was an experiment in not using the D runtime at all.)
Nice! I was thinking about something almost exactly like this
recently since 2.079.0 has features to further decouple the
language from the runtime. It would be nice to read a blog post
about this technique.
Mike
More information about the Digitalmars-d
mailing list