[R6RS] Changing the transcoding mid-stream

Michael Sperber sperber at informatik.uni-tuebingen.de
Wed Aug 23 13:16:12 EDT 2006

dyb at cs.indiana.edu writes:

> Here's a related question.  I presume that lookahead-char will raise an
> exception if end-of-file is reached after some but before before enough
> bytes have been read to make a whole character.  If this exception is
> caught, the application continues, the underlying file is extended
> independently with enough bytes to fill out the character, and get-u8 is
> called again, must get-char also fail with the same exception?

I presume the `get-u8' is really `get-char' and that its invocation is
the same as the invocation of `get-char'.  In that case, yes, by same
reasoning about the nature of EOFs as part of the data stream.

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

More information about the R6RS mailing list