mixin template

Timon Gehr timon.gehr at gmx.ch
Tue Jan 28 04:18:43 PST 2014


On 01/28/2014 04:29 AM, Dan Killebrew wrote:
> So how is 'mixin template' different from 'template'?

mixin template Foo(alias a){ alias Foo=a; }
pragma(msg, Foo!2); // error

template Bar(alias a){ alias Bar=a; }
pragma(msg, Bar!2); // ok



More information about the Digitalmars-d-learn mailing list