lua-users home
lua-l archive

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

>> Also you could initialize a local
>> value with nil before entering the loop like this:
> Then I may as well declare "local foo" and have done!

Personally, I like declaring all locals since it prevents typos from
creating side-effects, and I'd be happy to declare globals only when I want
write access to them.