Re: Copying a function in lua5.1
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Copying a function in lua5.1
- From: HyperHacker <hyperhacker@...>
- Date: 2010年10月30日 19:31:22 -0600
On Sat, Oct 30, 2010 at 19:26, Mailing Lists @ Imagine
<mailing_lists@imagine-programming.com> 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.