[plt-scheme] Reading/writing atoms to TCP port

From: Scott Bell (sebell at gmail.com)
Date: Tue Apr 4 18:28:01 EDT 2006

On 4/4/06, John Clements <clements at brinckerhoff.org> wrote:
>
> IIUC, MzScheme's behavior seems like the right one.  If the only
> character waiting to be read in a port is a "6", there's no way for
> READ to figure out whether this is the beginning of a longer number
> or just the number 6.  After all, you might be about to put the
> characters "2687" on the port, in which case READ ought to return the
> number 62687, right?

This certainly makes sense. During my testing, I missed cases that
would use a newline (other other delimiter) with atoms as well as
flushed output -- since the TCP ports are not line-buffered by
default.

Thank you John and John for clarifying.

- Scott Bell


Posted on the users mailing list.