Question about Mixin.

Agustin wolftein1 at gmail.com
Wed Jun 19 16:29:48 PDT 2013


Hello guys, my question is, its possible to write a mixin in a 
class, then if that class is inherited, the mixin will be written 
again instead of written the mixin again in the class child, for 
example:

Class A(T)
{
  mixin(WriteFunctionFor!(A));
}

Class B : A(B)
{
   ... -> mixin is written for B without need to write 
("mixin(Write...))")
}

Class C : A(C)
{
   ... -> mixin is written for C without need to write 
("mixin(Write...))")
}


More information about the Digitalmars-d-learn mailing list