I implement the script in my Java application using the LuaJ library . I need as much as possible to cut out the extra functionality. (In particular, apart from my functions, I left only type and pairs ). With handles, resetting functions is still a pleasure. If you create the object itself, then it does not have the necessary elements to work. (at least finder)
Is it possible to create an empty one, but with the necessary Globals connections for execution or a simple way to reset the contents of all its keys?
setfenv,lua_setfenv(Lua 5.1) lua-users.org/wiki/SandBoxes - FareakyGnome_ENV(variable, table) from version 5.2. - val