[r6rs-discuss] [Formal] Buffer mode should be specifiable on open-file-input-port

Michael Sperber sperber at informatik.uni-tuebingen.de
Sat Feb 10 11:17:59 EST 2007


John Cowan <cowan at ccil.org> writes:

> Currently, buffer modes are for output only.  However, operating systems
> also distinguish between buffered and unbuffered input.  The
> open-file-input-port procedure should be allowed to accept an additional
> argument specifying the buffer mode, in parallel with open-file-output-port.
> Allowing input to be unbuffered can limit deadlocks when dealing with
> communicating processes.

Is this possible in general?  Specifically, transcoding on input
requires some buffering, at least for multi-byte encodings.  Or do you
intend this to work only for binary ports?

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla



More information about the r6rs-discuss mailing list