lua-users home
lua-l archive

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

> A general loadlib request: Lua 5.1 has an OS-independent wrapper for DL 
> calls. Since I'm in the process of integrating Bruno Haible's av_call 
> into 5.1, I would need the Lua dl functions split up into the dl access 
> and the symbol lookup part.

Another option is for loadlib to cache the DL handle. Whenever you call
loadlib("bib", "foo") it first looks up whether bib is already loaded,
and if so reuses the same handle. That way you can call loadlib over the
same library for diferent functions without reloading the library.

-- Roberto