[racket] Doubt about the 'More: Systems Programming with Racket'

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Thu Jun 30 21:35:16 EDT 2011

Eduardo Bellani wrote at 06/30/2011 09:21 PM:
> The code above works very well if I read the input port with
> read-line, but won't budge if I use something like port->string.
> Can somebody shed a light on this?
>   

Try "close-output-port" after "flush-output".  Otherwise, the 
"port->string" in "handle" is waiting for an end-of-file that never arrives.

Also, in your "handle" procedure, do you want to "display" to "out"?

-- 
http://www.neilvandyke.org/


Posted on the users mailing list.