bug-guile
[Top][All Lists]
Advanced

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

Re: guile -c "(scheme-report-environment 5)" ==> ERROR: Unbound variable


From: Neil Jerram
Subject: Re: guile -c "(scheme-report-environment 5)" ==> ERROR: Unbound variable: scheme-report-environment
Date: Mon, 17 Mar 2008 23:30:23 +0000
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

"Marijn Schouten (hkBst)" <address@hidden> writes:

> Hi list,
>
> Using guile-1.8.4 I get:
>
> $ guile -c "(scheme-report-environment 5)"
> ERROR: Unbound variable: scheme-report-environment
>
> but also:
>
> $ guile
> guile> (scheme-report-environment 5)
> #<interface (ice-9 r5rs) 2b312d45dc80>
> guile> (eval '(* 2 3) (scheme-report-environment 5))
> 6
> guile>

Hi Marijn,

This just reflects that "guile -c" doesn't preload the (ice-9 r5rs)
module (and the same is true of "guile -s"), whereas the guile REPL
does.

Is this a practical problem for you?  It can be worked around by
something like this:

address@hidden:~$ guile -c "(begin (use-modules (ice-9 r5rs)) (write 
(scheme-report-environment 5)) (newline))"
#<interface (ice-9 r5rs) b7c71e40>

Regards,
        Neil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]