Anonymous classes should pass through super ctors

Frank Benoit keinfarbton at googlemail.com
Fri Aug 15 06:08:10 PDT 2008


Anonymous classes should pass through super ctors, if no ctor is given.

class C {
    this( int i ){ .... }
    abstract void run();
    // ...
}

auto c = new class(3) C {
    this( int a ){ super(a); } //<-- this line should not be necessary.
    void run(){}
};



More information about the Digitalmars-d mailing list