[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Loose sandbox
- From: Michael Gerbracht <smartmails@...>
- Date: Thu, 17 Jul 2008 17:52:41 +0200 (MESZ)
In article <a95667470807170225q3dab6288w30dc31500acbadf@mail.gmail.com>,
Ruan Kendall <shearwater+lua@gmail.com> 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.
Michael
--
...using RiscLua 4.14, built from Lua 5.1.3