lua-users home
lua-l archive

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


On Mon, Mar 31, 2008 at 11:18 AM, ketmar <ketmar@ic.km.ua> wrote:
> 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. %-)

i was complaining about the 'value' part of upvalue.  it's not just a
value, its a variable, as such it resides in a vars frame (it that the
name?) and each closure has a reference to it.  mystery solved


-- 
Javier