Skip to content
Snippets Groups Projects
Commit bdb3e53c authored by rtoy's avatar rtoy
Browse files

Rob Warnock reports on c.l.l that

(let ((s (make-two-way-stream (make-concatenated-stream)
				  (make-broadcast-stream))))
      (dotimes (i 10) (format s "Hello, i = ~a~%" i)))

doesn't work.  This is caused by TWO-WAY-MISC not handling the
:CHARPOS and :LINE-LENGTH operations.  Just call the appropriate
versions for the output stream of the two-way stream.
parent 1b694187
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.78 2005/02/21 17:14:28 rtoy Exp $")
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.79 2005/04/19 18:26:42 rtoy Exp $")
;;;
;;; **********************************************************************
;;;
......@@ -1164,6 +1164,10 @@ streams."
(set-closed-flame stream))
(:file-length
(error 'type-error :datum stream :expected-type 'file-stream))
(:charpos
(charpos out))
(:line-length
(line-length out))
(t
(or (if in-lisp-stream-p
(funcall (lisp-stream-misc in) in operation arg1 arg2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment