Bragging about Unix and D

Oskar Linde oskar.lindeREM at OVEgmail.com
Thu Aug 24 08:08:12 PDT 2006


Sean Kelly wrote:
> Tom S wrote:
>>
>> template table(int i = 0) {
>>     pragma (msg, row!(i));
>>
>>     static if (i+1 < height) {
>>         mixin .table!(i+1) table;
>>     } else {
>>         alias void table;
>>     }
>> }
> 
> Huh, now there's a use for mixin I can appreciate.  Nice work.

but s/mixin/alias/ will work just as well. :)



More information about the Digitalmars-d mailing list