lua-users home
lua-l archive

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

On Tue, 21 Jul 2009 20:03:49 +0100
"Sean Farrow" <> wrote:

> I havethe name of a function I wish to call in a string passed to me in
> this case through shared memory.
> Is there a way of calling this function in lua?

It depends on where the function value is known under the name
(functions have no names in Lua). The most generic form would be


Given that a function under the given name is known in the global
environment, you could also write


or, if the function value is stored in some other table


Timm S. Mueller <>
Schulze & Mueller GbR, Gryphiusstr. 2, 10245 Berlin,
Gesellschafter: Franciska Schulze, Timm S. Mueller,
Tel. +49 30 93624410,