Will alias this work for classes too?

Jascha Wetzel "[firstname]" at mainia.de
Thu Sep 13 04:09:41 PDT 2007


Janice Caron wrote:
> Will alias this work for classes too?
> 
> An in,
> 
> class A { int a; }
> class B { int b; }
> class C { int c; }
> 
> class X : A
> {
>     B b;
>     C c;
>     alias b this;
>     alias c this;
> }
> 
> Fake multiple inheritance!

that would be a different syntax for regular MI and is therefore 
probably not going to happen.



More information about the Digitalmars-d mailing list