[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: finishing output translating stream
Shiro Kawai <shiro@xxxxxxxx> writes:
> I thought we were talking how flush-output-stream tells the
> fact that flushing is requested to the 'translate-proc'.
> Am I missing something?
I'm not sure. What you wrote earlier was:
> Actually I'm not sure about flushing. I thought of the case
> such that I'm sending a string packet over a pipe or socket, and
> want to make sure I send entire string, without worrying that the
> last few characters might be sitting in the character conversion
I think I'm beginning to get it---by character conversion buffer, you
mean stuff left in the "state" variable kept around by the stream
translation layer, right?
Now, I can see how that may happen in theory---but in practice, aren't
you likely to always translate as far as possible into the data handed
to you? (Maybe this should be mentioned in the SRFI.) Because if
you do, then knowing about a flush is not going to help you if you
don't get more data along with it (which you don't currently).
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla