lua-users home
lua-l archive

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


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