lua-users home
lua-l archive

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

On Sat, Oct 30, 2010 at 19:26, Mailing Lists @ Imagine
<> wrote:
> Hello Everyone,
> - Lua5.1
> If a user passes a function as argument to a function from the lua side, how
> would I copy that argument to e.g. a global table from the C side of the
> application,
> if the called function was defined in the C side?
> I've searched the web, but couldn't find anything that could help me. Can
> anyone
> tell me a bit more about this?
> Thanks and have a nice Sunday,
> Bas Groothedde

Store the value in the registry table under some unique name. When you
need to call it again, pull it back out of the registry.

Sent from my toaster.