(sorry for no context, stupid email program cant indent multiple replies)
I'm not sure how Ikarus works on the REPL, but IronScheme behaves as
follows:
(begin (define a 1)
.. (define b 2)
.. (+ a b))
3
a
1
b
2
The begin is compiled as a single unit and definitions are spliced.
So the answer is easy I think, just wrap input with a 'begin', but the
problem is to decide where stop reading input for multple expressions.
IronScheme's REPL implicitly wraps everything in a begin already, so the
follow differs to Ikarus.
IronScheme:
1 2
2
Ikarus:
1 2
1
2
Cheers
leppie