Bragging about Unix and D
Tom S
h3r3tic at remove.mat.uni.torun.pl
Thu Aug 24 09:05:37 PDT 2006
Oskar Linde wrote:
> 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. :)
Well, it's a typo, it was supposed to be an alias :D
More information about the Digitalmars-d
mailing list