1 require("import") -- the import fn
2 import("disown") -- import code
4 -- catch "undefined" global variables
5 setmetatable(getfenv(),{__index=function (t,i) error("undefined global variable `"..i.."'",2) end})
12 collectgarbage() -- this will double delete unless the memory is managed properly