https://issues.dlang.org/show_bug.cgi?id=19530

Adam D. Ruppe <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Adam D. Ruppe <[email protected]> ---
You can just define a third template that mixes in the first two.

mixin template A(int x, float y) {
  // ...
}

mixin template B(int x, float y) {
  // ...
}

mixin template composite(int x, float y) {
        mixin A!(x, y);
        mixin B!(x, y);
}

struct Test {
        mixin composite!(1, 2.0);
}


That works today.

--

Reply via email to