Multiple subtyping with alias this and nested classes
downs
default_357-line at yahoo.de
Fri Oct 2 19:52:03 PDT 2009
language_fan wrote:
> Fri, 02 Oct 2009 19:35:55 -0300, Leandro Lucarella thusly wrote:
>
>> We might have very different taste, but I find that a little...
>> horrible. What do you have against mixins? I think you're trying to use
>> D as C++ :)
>
> So basically the diamond problem is again implementable in D, yay?
Nah, there's no ambiguity - when in doubt, the "primary" inherited class is the source of the function.
AFAIK, alias this only kicks in on otherwise undefined functions.
More information about the Digitalmars-d
mailing list