[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Copying a function in lua5.1
- From: "Bas Groothedde" <mailing_lists@...>
- Date: Sun, 31 Oct 2010 04:13:49 +0100
On Sat, Oct 30, 2010 at 8:31 PM, HyperHacker <email@example.com>
Store the value in the registry table under some unique name.
even better, use luaL_ref() to get a unique integer id, pass that int
around in C, and use lua_rawgeti() to pick from the registry.
All great suggestions, thank you very much!