On 5/27/13 9:20, Jonathan M Davis wrote:
class D : C
{
     void foo() { writeln("D"); }
     void bar() { writeln(super.foo()); }
}

I think this works just fine, you just have to drop the writeln(). foo() doesn't return anything, but prints itself.

But yet, super should just work: it should be a variable of type C and treated as such.

L.

Reply via email to