[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Finalizers and Lua.org demo page
- From: Mikhail Zajcev <zajcev.m@...>
- Date: Tue, 25 Jul 2017 21:37:58 +0400
Egor wrote:
> Yes, deep copy of whole _G into env is a solution.
> Don't forget to create new metatable for strings and set its
> __index field to env.string to prevent user from accessing original
> "string" library as debug.getmetatable"".__index
demo.lua with sandboxing: http://codepad.org/E87tf77T
- References:
- Finalizers and Lua.org demo page, Egor Skriptunoff
- Re: Finalizers and Lua.org demo page, Luiz Henrique de Figueiredo
- Re: Finalizers and Lua.org demo page, Luiz Henrique de Figueiredo
- Re: Finalizers and Lua.org demo page, Luiz Henrique de Figueiredo
- Re: Finalizers and Lua.org demo page, Luiz Henrique de Figueiredo
- Re: Finalizers and Lua.org demo page, Egor Skriptunoff
- Re: Finalizers and Lua.org demo page, Mikhail Zajcev
- Re: Finalizers and Lua.org demo page, Egor Skriptunoff
- Re: Finalizers and Lua.org demo page, Mikhail Zajcev
- Re: Finalizers and Lua.org demo page, Egor Skriptunoff