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()
It sounds like you want to do an 'eval', which is supported in Lua like so:
assert(loadstring(x))()
You'll probably want to concatenate the "()" onto x first, though.