Guile Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some sort of bug??



Chris Bitmead <chrisb@ans.com.au> writes:

> What should I make of this?....
> 
> guile> (use-modules (ice-9 slib))
> ;; set up some slib catalogs....
> guile> (load "/usr/local/share/guile/site/xscm-init.scm")

The definition of x-scm:vicinity is loaded into the current module
(probably the default one: (guile-user)).

> guile> (require 'stringvector)

Require tries to load "strvec.scm" (or whatever has been
associated with the symbol stringvector) into the slib module
((ice-9 slib)).

> /usr/local/share/guile/site/strvec.scm:4:43: In expression
> (x-scm:vicinity):
> /usr/local/share/guile/site/strvec.scm:4:43: Unbound variable:
> x-scm:vicinity
> ABORT: (misc-error)

x-scm:vicinity isn't defined in the slib module...

All of the above should work if you load the init file into the slib
module:

(use-modules (ice-9 slib))   ; load slib module
(define-module (ice-9 slib)) ; go to slib module
(load ...)

(Note: The slib module is only designed as an interface to the slib
 library.  It was never intended to emulate SCM.  Using it to run
 other packages than slib is stretching it beyond its limits.)

/mdj

Guile Home | Main Index | Thread Index