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: Loading modules [PROBLEM/SOLUTION]


[Thanks to thi for advice]


THE PROBLEM!!!! If the following behaviour is a feature, it should be
documented.  To my mind it is a misfeature!!

If you have not set the path up correctly, and hence a module does not
load, later loading is (at least sometimes) broken even if you correct
the path.


[Example using Glenn Moloney's gnuplot.scm, relocated]
-----------------------------------
[START SESSION]

guile> (set! %load-path (cons (string-append (getenv "HOME")
"/statproj") %load-path))

guile> %load-path
("/home/stark/statproj" "/home/stark/scheming/zguile/share/guile/site"
"/home/stark/scheming/zguile/share/guile/1.3.1"
"/home/stark/scheming/zguile/share/guile" ".")

guile> (use-modules (gmat gnuplot))

[OK]
-----------------------------------
[START SESSION]

guile> (use-modules (gmat gnuplot))

[ERROR]

guile> (set! %load-path (cons (string-append (getenv "HOME")
"/statproj") %load-path))

guile> %load-path
("/home/stark/statproj" "/home/stark/scheming/zguile/share/guile/site"
"/home/stark/scheming/zguile/share/guile/1.3.1"
"/home/stark/scheming/zguile/share/guile" ".")

guile> (use-modules (gmat gnuplot))

[ERROR]
-----------------------------------

Alex.