[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: storing a lua closure in a C object, then calling it from C?
- From: "Daniel Collins" <daniel.collins@...>
- Date: Sun, 21 May 2006 19:30:08 +0930
> In my C code I first create two lua tables: one for storing
> callback functions and the other for storing the full userdata.
I forgot to mention, these are stored in the registry. I could have
stored them in an environment except that I also manage callbacks to C
functions with this system. The C function callbacks are created in
functions that are not registered with Lua at all. I didn't want to
register these functions simply so they could access the environment.