Как вызвать вложенную функцию из строки?
function first() function nested() print('function: nested') end print('function: first') end _G["first"]() --Calls first function from string
nested является глобальной переменной, поэтому вы можете вызывать ее с помощью nested() или _G.nested() или _G["nested"]().
nested
nested()
_G.nested()
_G["nested"]()