Is it possible in lua to execute a function from a string representing its name? i.e: I have the string x = \"foo\", is it possible to do x() ?
string x = \"foo\"
x()
Names are not unique, there can be many functions names foo in different namespaces. But _G['foo'] is foo in the global namespace.
_G['foo']
foo