[r6rs-discuss] Typos
Abdulaziz Ghuloum
aghuloum at cs.indiana.edu
Thu Apr 3 06:55:33 EDT 2008
Hello,
Section 1.13 and example D.2.2 both have incorrect programs using put-
bytes, get-bytes-all, and not flushing the output port. The
following can be used instead:
(import (rnrs base) (rnrs io ports) (rnrs programs))
(let ([p (standard-output-port)])
(put-bytevector p
(call-with-port
(open-file-input-port
(cadr (command-line)))
get-bytevector-all))
(flush-output-port p))
Aziz,,,
More information about the r6rs-discuss
mailing list