Re: A stupid question
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: A stupid question
- From: ketmar <ketmar@...>
- Date: 2008年3月31日 19:18:37 +0300
On 2008年3月31日 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.