lua-users home
lua-l archive

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


Have you tried the 'rings' or 'lanes' modules?

> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
> Behalf Of Thiago L.
> Sent: donderdag 1 mei 2014 19:15
> To: Lua mailing list
> Subject: [Proposal] Creating Lua states from Lua
> 
> Lua is powerful but it needs more (string metatable) sandboxing... In
> Lua 5.1 it's possible but in Lua 5.2 it's completely impossible...
> My idea to fix it? Lua states in Lua states!
> Each Lua state can have its own string metatable, so all you would do is
> newstate(), then use state._G (or state._ENV) to access the global _ENV
> (aka _G) and other state.stuff to access other stuff...
> (state.stringmetatable or something to access the string metatable)
> 
> Please? I've been trying to sandbox string metatables since I started
> messing with Lua D: