On Thursday, 27 December 2018 at 12:07:48 UTC, Rene Zwanenburg wrote:
On Tuesday, 25 December 2018 at 22:07:07 UTC, Johannes Loher wrote:
Thanks a lot for the info, that clarifies things a bit. But it still leaves the question, why it works correctly when inheriting from an abstract class instead of implementing an interface... Any idea about why that?

Unlike interfaces, base class references don't need adjustment.

Yeah. You shouldn't need to know these details but if you are interested, the details are here: https://dlang.org/spec/abi.html#classes (it's meant for tech reference, not for explanation. If you need more explanation, go search for vtables, multiple inheritance, etc.).

-Johan

Reply via email to