mixin template

Dan Killebrew dank at gmail.com
Thu Jan 30 22:26:15 PST 2014


On Friday, 31 January 2014 at 06:24:27 UTC, Dan Killebrew wrote:
>> 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
>
> As far as I can tell, 'mixin template' does nothing new;

(besides fail to compile in Timon's reply). I should have said 
"it does nothing helpful."


More information about the Digitalmars-d-learn mailing list