Alex Shinn | 11 Feb 2012 12:17
Picon

Re: REPL and code loading

On Sat, Feb 11, 2012 at 5:00 PM, DCE <dcespin.mk2@...> wrote:
> Hello,
>
> I'm curious as to why this doesn't work:
>
> $ cat > test.scm
> (define foo 'bar)
> ^D
> $ chibi-scheme -xscheme
>> (load "test.scm")
>> foo
> ERROR: undefined variable: foo
>
> What is "load" doing? And what do I need to do in order to get the
> expected behavior?

Sorry, that was a bug in the new -x option which
wasn't resetting (interaction-environment).  Fixed
now, thanks for reporting it!

Note that -xscheme is unnecessary - scheme is
the default language.

--

-- 
Alex


Gmane