lua-users home
lua-l archive

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

In article <>,
   Ruan Kendall <> wrote:
> I'm currently working on a similar trick in my project, though I don't
> copy the whole of _G for efficiency reasons, if nothing else. Instead,
> I create a clean environment, and give it a metatable that makes it
> pull values from the global environment if they're not present in the
> sandbox.

Thanks, I will keep your answer in mind, at the moment I do not fully
understand because I don't know much about the metatable concept and need
to read about it first. 


...using RiscLua 4.14, built from Lua 5.1.3