Will alias this work for classes too?

Janice Caron caron800 at googlemail.com
Wed Sep 12 15:08:48 PDT 2007


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!



More information about the Digitalmars-d mailing list