[racket] flush is not enough, a list is needed
You're using just `write', so you need some whitespace between items:
>
> > (with-input-from-string
> (with-output-to-string (λ() (write 'x) (write 'y)))
> read)
> 'xy
>
Wow, thanks a lot, I would have never thought about that. I thought that
'write' was sending data, not mere characters.
Writing a space after each output indeed solves the problem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121102/d0e5eb80/attachment.html>