interface function isn't implemented - was Re: DMD 0.170 release

Chris Miller chris at dprogramming.com
Tue Oct 17 09:38:43 PDT 2006


interface IFoo
{
    void foo();
}

class Foo: IFoo
{
    final void foo() { }
}

DMD 0.170 output:
    test.d(6): class test.Foo interface function IFoo.foo isn't implemented

Is this really what should happen? I thought final could mean it's still  
virtual if it's an interface implementation function or overriding  
something from a base class, just that it cannot be overridden again.



More information about the Digitalmars-d-announce mailing list