www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - mixin bug with interface

reply Roel Mathys <roel.mathys yucom.be> writes:
interface A { void f(); }

template Foo() { void f() { printf("in C.f()\n"); }}

class C : A
{
     mixin Foo;
}

void main()
{
     C c = new C();
     c.f();
}


=> won't compile
=> error: class C interface function A.f is not implemented
=> suppressing the interface inheritance let's me compile and execute

bye,
reol
May 18 2004
parent Stewart Gordon <smjg_1998 yahoo.com> writes:
Roel Mathys wrote:

<snip>
 => error: class C interface function A.f is not implemented
 => suppressing the interface inheritance let's me compile and execute

*** This bug has been marked as a duplicate of digitalmars.D.bugs/203 *** Stewart. -- My e-mail is valid but not my primary mailbox, aside from its being the unfortunate victim of intensive mail-bombing at the moment. Please keep replies on the 'group where everyone may benefit.
May 18 2004