lua-users home
lua-l archive

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


On Mon, 31 Mar 2008 12:11:26 -0500
"Javier Guerra" <javier@guerrag.com> wrote:

> i think 'upvalue' is a misleading term.  it's just a local variable,
> local to the do...end block and not to either of the functions.  (of
> course that block exists inside the chunk's function).
it's local for do .. end and upvalue for nested functions. %-)

nested function can declare another 'a' (local a), and then 'a' will be
local variable for function and not upvalue.