|
On 06.04.2013 16:51, Peter Cawley wrote:
loadstring becomes load, and loadfile/setfenv becomes just loadfile: function execute_script(code,path) local script if code then -- code contains automatically generated code script = load(code) else script = loadfile(path, "t", env) end
As loading from a file may file, you should perhaps say if script then script() else errorMessage() end here.
script()
Bernd -- http://sudrala.de