From: Sam Steingold <sds@gn...> - 2006-10-11 02:05:58
CLISP passes the :LIBRARY argument to dlopen (or LoadLibrary) as is.
Should it "DWIM" instead?
E.g., should it try to (optionally, of course) append ".so" (or ".dll")?
Should it try to prepend "lib" (on unix)?
In that case (:LIBRARY "pq") will open "libpq.so" on Unix and "pq.dll"
on woe32 -- thus enabling portable code.
Do any other lisps (or perl/python/ruby whatever) do anything like that?
The CLISP function that opens the library, libopen, has the following
/* FIXME: On UNIX_DARWIN, need to search for the library in /usr/lib */
Does that mean that on all other unixes dlopen searches /usr/lib
automatically, but not on osx?
PS. I am yet to see a compelling argument for FFI:OPEN-FOREIGN-LIBRARY...
Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux)
Ph.D. stands for "Phony Doctor" - Isaak Asimov, Ph.D.
Get latest updates about Open Source Projects, Conferences and News.