What would the Lua equivalent of this be?
(let ((a +)) (null-environment))
Edit: I do really want to know if there is a simple answer. Being able to embed Luajit for some things like this would be awesome.
(let ((a +)) (null-environment))
Edit: I do really want to know if there is a simple answer. Being able to embed Luajit for some things like this would be awesome.
local env = {}
env['args'] = {...}
setfenv(f, env)
return f()Absolutely doable though.
env['f'] = myfunc
and the function will be available as f within the environment.