This is the mail archive of the guile@sources.redhat.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]

a module spanning a .c and a .scm file



I have figured out how to create a module in scheme with
(define-module ...) and I can create a module in c with
scm_register_module_xxx. Is there a way I could have a module span .c
and .scm files? That is, I have some functions for a module defined in
a .scm file and others defined in .c file, how could I load them all
with one

(use-modules (i-dig the-modules))

I tried just dynamically linking the c functions and calling an
scm_init_the_module function from within the .scm file, which sorta worked
except that I couldn't access any of the scm functions from the c
library. I'm guessing they weren't added the same way a (define-public
...) procedure is added.

thanks!

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