I want to achieve this (import function from the usage table as local values):
function blah ()
local x = util.x
local y = util.y
...
end
without the need to reference each function explicitly, for example. sort of:
function blah()
for name,f in util do
???
end
end
Unfortunately, there is no local table in which I could set the way _G ['function_name_as_string'] could be set. Ideas?
Hugo schmitt
source
share