Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
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.