lua-users home
lua-l archive

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


>A couple suggestions: make 'a' local [...]


Call me stupid - or to be more accurate, call me a Lua 4 programmer - but do you actually need the local statement in Lua 5?

In Lua 4, sure.  But I thought that we were "lexically scoped" now.  Doesn't that mean that a is automatically local to the function?  Or have I misunderstood?

Andy.