CRTP in D?

John C johnch_atms at hotmail.com
Thu Aug 20 00:41:38 PDT 2009


div0 Wrote:
> > 
> While we're on the subject, is it possible to mixin in a tuple?
> Doesn't seem like you can...
> 
> class C(M...) {
>  mixin M;
> }
> 
> Doesn't work.

import std.typetuple;

class C(M...) {

  mixin TypeTuple!(M);

}


More information about the Digitalmars-d-learn mailing list