Re: Callbacks using a 3rd party library in C
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Callbacks using a 3rd party library in C
- From: "Adam D. Moss" <adam@...>
- Date: 2004年8月02日 16:06:28 +0100
Michael Roth wrote:
> Use the registry to store associated Lua data.
Personally I've just switched to the discipline of putting
any data associated with a callback into a closure for that
lua function, on the lua side, so that the C callback invoker
doesn't have to bother with handing lua-side callback-specific
aux data at all. I think that's the 'right' thing to do, but
I haven't been using this method long enough to really assess
its practicality yet.
--Adam