lua-users home
lua-l archive

Re: Syntax and redundancy

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 8/30/05, Rici Lake <lua@ricilake.net> wrote:
> Try:
> 
> DO(i, 0, 9,
> int j, k;
> j = 2 * i;
> k = i + 1;
> printf("i = %d, j = %d, k = %d\n", i, j, k);
> );
Sure, can't use commas here. Everything has its limitations,
and perfection is but a mirage :)
In this case, I'd have to write int j; int k; instead.
B.

AltStyle によって変換されたページ (->オリジナル) /