Re: [Scheme-reports] get-output-string on closed ports
cowan@ccil.org 30 Jan 2015 21:52 UTC
Taylan Ulrich Bayýrlý/Kammer scripsit:
> Is using `get-output-string' really "reading" from the port?
In SRFI 6 and R7RS, it is not; it simply retrieves all the
characters that have ever been written to the port and does
not side-effect the port. The R6RS analogue, however, retrieves
what is currently available on the port and then removes those
characters from the port, which is much more like reading.
--
John Cowan http://www.ccil.org/~cowan cowan@ccil.org
Deshil Holles eamus. Deshil Holles eamus. Deshil Holles eamus.
Send us, bright one, light one, Horhorn, quickening, and wombfruit. (3x)
Hoopsa, boyaboy, hoopsa! Hoopsa, boyaboy, hoopsa! Hoopsa, boyaboy, hoopsa!
--Joyce, Ulysses, "Oxen of the Sun"
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports