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: module loading


Aleksandar Bakic <bakicale@cps.msu.edu> writes:

> I noticed this problem a month ago. Mikael Djurfeldt sent me boot.scm
> that he patched, but now I am not sure if I can use it because the
> ice-9 directory has been reorganized. Namely, if I define a module
> using scm_register_module_xxx("pgrt vo", scm_vo_init) and dynamic
> linking, _and_ have Scheme file ${SCHEME_LIBRARY_PATH}/pgrt/vo.scm, I
> want them to be loaded both when I write `(use-modules (pgrt
> vo))'. However, only the C part is loaded; I have to use `(load
> ".../pgrt/vo.scm")' afterwards in order to get both. If there is no C
> part but only Scheme one, it works.
> 
> Has something changed in the way modules are loaded or this is still a
> bug?

I made the patch directly in the repository, so the current snapshot
behaves the way you want.  I only sent you boot-9.scm so that you
could start working directly.

Best regards,
/mdj