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.