Bragging about Unix and D

Sean Kelly sean at f4.ca
Thu Aug 24 08:00:54 PDT 2006


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.


Sean



More information about the Digitalmars-d mailing list