This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Where do dynamic modules go?


Marius Vollmer <mvo@zagadka.ping.de> writes:

> I'm experimenting with a new approach in guile-gtk, the Guile bindings
> to Gtk+ (and Gnome).  There, *every* module is required to be a *.scm
> source file.  Such a Scheme file might decide to load and merge
> compiled code from a shared library, with a call to
> `merge-compiled-code'.  Like
> 
>     (define-module (gtk gdk)
>       :use-module (gtk dynlink))
> 
>     (merge-compiled-code "sgtk_init_gtk_gdk_glue" "libguilegtk")

After thinking about it for a day or so, I really like your idea.  One
question: In the code above, are all the variables defined in
sgtk_init_gtk_gdk_glue exported from (gtk gdk), or do you need to have
an export in (gtk gdk) for the ones that you want to be visible?

Cheers,

Clark