lua-users home
lua-l archive

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


On Tue, Oct 23, 2012 at 7:55 PM, Coda Highland <chighland@gmail.com> wrote:
> The issue you encountered there with "i += n" is that it expands to "i
> = i + n", which declares i as a local variable first and THEN tries to
> look up its value, but it's uninitialized. In Python, ALL assignment
> operations act on locals unless explicitly made global.

I actually encountered this problem recently. I stand corrected! Thanks! =)

-- 
NI!