[racket] REPL and read-line

From: Jos Koot (jos.koot at telefonica.net)
Date: Fri Jan 7 02:50:46 EST 2011

I tried that, and it may work on my windows 7 system, but may not on another
system.
In addition the return characters at the end of each string should be
removed.
I find this so uggly and error prone that I did not post this idea.
Jos

> -----Original Message-----
> From: users-bounces at racket-lang.org 
> [mailto:users-bounces at racket-lang.org] On Behalf Of Hendrik Boom
> Sent: 06 January 2011 23:01
> To: users at racket-lang.org
> Subject: Re: [racket] REPL and read-line
> 
> On Thu, Jan 06, 2011 at 04:09:49PM -0200, Alexandre Moreira wrote:
> > Hello, everyone. I'm trying to use the (read-line) function in 
> > racket's REPL  and I'm having a weird problem. Whenever I type
> > (read-line) in the REPL prompt it returns the empty string. 
> It's as if 
> > it is receiving the linefeed character I use to enter the 
> command on 
> > the REPL.
> 
> You could try to call (read-line) twice and see if the secone 
> one returns what you want.  This would confirm your suspicions,
> 
> -- hendrik
> _________________________________________________
>   For list-related administrative tasks:
>   http://lists.racket-lang.org/listinfo/users



Posted on the users mailing list.