[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: upvals in Lua bytecode
- From: Javier Guerra Giraldez <javier@...>
- Date: Thu, 2 Jun 2011 01:47:37 -0500
On Thu, Jun 2, 2011 at 12:19 AM, Xingzhi Pan <vengeance.storm@gmail.com> wrote:
> So my question is that for inner functions fi1 and fi2, why GETGLOBAL
> and SETGLOBAL, rather than GETUPVAL and SETUPVAL, are used? Isn't uv
> an upvalue?
no, uv is a global.
it wasn't declared with 'local' at the outermost fo() function
--
Javier