Multiple subtyping with alias this and nested classes

Leandro Lucarella llucax at gmail.com
Sat Oct 3 08:58:26 PDT 2009


Andrei Alexandrescu, el  2 de octubre a las 19:10 me escribiste:
> Leandro Lucarella 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++ :)
> 
> If mixins work better, all the better. How would you use them to
> achieve multiple inheritance?

Don't design with multiple inheritance in mind, use interfaces + mixins
for common functionality instead.

-- 
Leandro Lucarella (AKA luca)                      http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Bermú con papafritas y good show!



More information about the Digitalmars-d mailing list