|
On 19.05.2011 16:48, Romulo wrote:
Thank you, Romulo for this little piece of code. I'm sure it will work fine for me too. Out of curiosity: How would be the same (or even better) functionality in Lua 5.2 look like?.... Conclusion: if you want complete isolation and don't have control over the globals/locals/closure /registry usage of all modules used by the script, then you shall use one state for each request. Otherwise, the setfenv method will work fine. ....
--Frank