Multiple Inhertiance?
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Thu Nov 6 19:28:44 PST 2014
On Thursday, 6 November 2014 at 22:15:25 UTC, Meta wrote:
> On Thursday, 6 November 2014 at 21:56:39 UTC, deadalnix wrote:
>> In the other hand, alias this (or prototypal inheritance model
>> in
>> general) do not suffer from these issues. It also have some
>> good
>> use case like entity framework.
>
> I'm curious as to how prototypical inheritance avoids the
> diamond inheritance problem. Is it due to the fact that it
> doesn't require a virtual call, and thus, ambiguous cases can
> be caught at compile time?
Because the base "object" and delegated "object" are different
one, not the same being polymorphic.
More information about the Digitalmars-d
mailing list