"Marijn Schouten (hkBst)" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]:~$ guile -c "(begin (use-modules (ice-9 r5rs)) (write (scheme-report-environment 5)) (newline))" #<interface (ice-9 r5rs) b7c71e40> Regards, Neil