lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,

How to call a local function by it's name ?

Something like

----
local function normMilli( v ) return v/1000 end

local name = 'normMilli'
----
Then I need the call the function for which the name is stored in name
variable.

I know for global function, I can use _G, but I didn't find for local ones ?

Thanks

Laurent