Looking for details of how interface method tables are implemented in D

Dibyendu Majumdar d.majumdar at gmail.com
Fri Jun 23 09:53:25 UTC 2023


Follow up question.

If a class implements 5 interfaces.

I create an object of this class.

Is it correct that the resulting object has 6 vtable pointers 
embedded, one for the class, and 5 for the interfaces?

And every object that is allocated will have this overhead?

In Java land, no vtables are embedded in the object.


More information about the Digitalmars-d mailing list