lua-users home
lua-l archive

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


Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
>
> In particular, if you load and run a chunk that defines several
> functions, changing its upvalue changes the environment for all
> functions it created (as they are statically inside the chunk).

I suppose codemonkey could use lua_upvaluejoin on all the loaded chunks,
so setting that one joined upvalue changes the global environment of all
the code.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Tyne, Dogger: Variable 3 or 4. Smooth or slight. Mainly fair. Moderate or
good, occasionally poor.