lua-users home
lua-l archive

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

> Yes, now that I have found the solution, I agree :-) As I stated, I
> choose to send this anyway, in case somebody else stumble on the
> problem. I find this 'for' stuff neither intuitive nor obvious. I just
> hope to remember this problem later :-) Mmm, where is the closing
> parenthesis? :-)

The problem goes away if you think of a for as being

for local i = x, y do ... end

Then it's just like any other local declaration.

-- | Il ne vaut pas peigner l'eau