lua-users home
lua-l archive

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


> Also, I think the "FOR" notation below
> far beats the proposed one... It makes sense as you read it.

> >
> > Well, thats a matter of taste, but I would suggest:
> >
> > FOR statement1 WHILE  expression THEN statement2 DO block END
> >

I particularly prefer the shorter, although C-like, syntax:

for stat1; exp; stat2 do
 ...
end


-- waldemar