lua-users home
lua-l archive

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


Thanks a lot to everyone who replied. Userdata upvalues are exactly what I need.

Tim

On Oct 21, 2003, at 2:57 PM, Luiz Henrique de Figueiredo wrote:

there's no way to associate any sort of user data with the exported functions

Sure there is. You export C closures, not C functions, in fact. So C function
can have upvalues.
--lhf