[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Call a local function by name.
- From: Laurent Faillie <l_faillie@...>
- Date: Fri, 03 May 2013 17:14:03 +0200
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