dev-serveez
[Top][All Lists]
Advanced

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

Re: [dev-serveez] guile modules


From: Thien-Thi Nguyen
Subject: Re: [dev-serveez] guile modules
Date: 08 Jun 2002 17:22:02 -0400

stefan <address@hidden> writes:

   This is exactly I do not want to do.  I was asking for a way to export
   symbols without typing them explicitely.

ok, so the question is about extracting symbol names from a shared object
library.  for that you can use nm(1) during the build process, or better yet
get SWIG to (also) produce the export form directly, since it is, after all,
the interface compiler.  from serveezopt-0.0.2 tarball i see that SWIG 1.3.7u
is used; perhaps the newly released 1.3.13 has direct support for this...  i
confess not being up to speed on SWIG these days.

if you must stick w/ a run-time solution, the libtool manual also mentions
"dlpreopen" symbols, but unfortunately there is no way to access that info
from scheme at this time.

   > a better approach would be to get a module system API defined and then
   > use that, but that's another story.

   What do you mean by this?

"better" in the sense that eval requires 2 args in later guile versions so
this solution is not robust.  "module system API" in the sense that
define-module (and similarly, use-modules) are implemented using a layer of
procedures and variables that could potentially be useful in its own right, if
they can be documented and supported.  "another story" in the sense that i
could easily rant about guile for hours but luckily you are being spared...

thi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]