[Top][All Lists]

[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: 13 Jun 2002 15:24:03 -0400

stefan <address@hidden> writes:

   Any hint?

another way to list the symbols that are defined in a module (but not
necessarily exported yet) is to use module-map.  for example:

 (module-map (lambda (sym var) sym) (resolve-module '(guile)))

in guile-1.4 returns a list of length 259.  for your original case, the
complete expression would be:

 (define-module (serveez) ...)

 (eval `(export ,@(module-map (lambda (sym var) sym)
                              (resolve-module '(serveez)))))

this exports everything that has been defined in the `(serveez)' module.

i still feel it's best to get SWIG to generate the export form; the above
solution is far from ideal.


reply via email to

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