[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with srfi-1 when loading from the command line
From: |
Marius Vollmer |
Subject: |
Re: problem with srfi-1 when loading from the command line |
Date: |
Tue, 24 May 2005 20:28:26 +0300 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Rick Taube <address@hidden> writes:
> Im having a problem getting the srfi-1 definition of list-index (which
> is defined in both guile and srfi-1) to stay in effect when I load my
> system from the command line using the -l option. im not sure what is
> going wrong.
That is actually a 'feature' because of this code in boot-9.scm that
is executed just before the REPL starts:
;; so that builtin bindings will be checked first
(module-use! guile-user-module (resolve-interface '(ice-9 r5rs)))
(module-use! guile-user-module (resolve-interface '(guile)))
The builtin bindings come from the (guile), and using it last will
shadow all previous bindings.
I agree that this is not really wanted. So I vote for removing the
last line of the code snippet above. The (guile) module is used
anyway in every module. Ok?
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
- Re: problem with srfi-1 when loading from the command line,
Marius Vollmer <=