Vtable for virtual functions in D

Kagamin spam at here.lot
Tue Apr 3 09:54:45 UTC 2018


On Monday, 2 April 2018 at 07:02:07 UTC, sarn wrote:
> I decided to pull some basic background info about vtables, 
> etc, into its own post.  I'll write about taking advantage of 
> alias this and template metaprogramming in a later post.
> https://theartofmachinery.com/2018/04/02/inheritance_and_polymorphism.html

You can use COM interfaces. You'll still need to build vtable by 
hand, but at least you'll have some syntax sugar at the call site 
if you don't have multiple inheritance.


More information about the Digitalmars-d mailing list