Implement a class with mixins

Frank Benoit keinfarbton at nospam.xyz
Sat May 6 15:51:15 PDT 2006


I missed the Bar mixin in the previous posting.

> .class C{
> .  mixin Foo foo;
.  mixin Bar bar;
> .  public this(){
> .    foo.this( 2 ); // if missing => compile error
> .    // bar.this() is implicit called, manually call is possible
> .  }
> .}



More information about the Digitalmars-d mailing list