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

Dibyendu Majumdar d.majumdar at gmail.com
Sat Jun 17 20:29:35 UTC 2023


On Saturday, 17 June 2023 at 17:16:16 UTC, FeepingCreature wrote:
>> I am looking for details of how interface method dispatch 
>> works in D.

> Note: While writing this answer, I found the actual specified 
> answer in the D ABI docs: 
> https://dlang.org/spec/abi.html#classes
>
> Anyway, how does all that compare to Java? No clue! Sorry. I 
> can only assume it's pretty similar, because this is really is 
> the "unambiguously sensible" way to do it.

It seems closer to C++ design, as Java does not adjust an object 
pointer when casting to an interface or subtype.



More information about the Digitalmars-d mailing list