lua-users home
lua-l archive

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


>How do I retreive a persistent reference to the second, the function?

Do you really need a persistent form? I mean, to store in a file and load
later? If so, you can try ldumplib.c, available in the work version.

If you only need a reference that lives during the lifetime of your program,
then you can use references (there's an API for it: lua_ref, lua_getref,
lua_unref).

--lhf