lua-users home
lua-l archive

Re: upvals in Lua bytecode

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


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

AltStyle によって変換されたページ (->オリジナル) /