www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Unobvious error message

class A {
        this() {}
        void func() { this(); }
}

test.d:3: class constructor call must be in a constructor

and more serious:
class A {
        this() {}
        void opCall() {}
        void func() {
                this();  // this should call opCall, shouldn't it ?
        }
}


-- 
          Vladimir
Apr 22 2005