Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
function foo() print "hello" end bar = foo bar() hello
or, if you really want to have the function name as a string, there are some suggestions here: http://stackoverflow.com/questions/1791234/lua-call-function-from-a-string-w... hunmonk On Sunday, December 16, 2012 at 11:34 AM, Lloyd Aloysius wrote:
Hello
Does lua support , Call a Function through a variable name
Ex:
function playfile()
end
variable_a = "playfile"
how to call the variable_a , that execute function?
Thanks Lloyd
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org (mailto:FreeSWITCH-users@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org