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

From: Michael Sperber <sperber>
Date: Sat Feb 10 11:18:06 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
Received on Sat Feb 10 2007 - 11:17:59 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC