From: Barry W. <wi...@ac...> - 2002-10-11 18:30:52
|
I have observed the following behaviour in clisp : [54]> (with-output-to-string (out) (peek-char #\] (make-echo-stream (make-string-input-stream "ab cd e df s]") out))) "ab cd e df s]" [55]> This is not what I would expect to happen. From the Hyperspec documentation for peek-char: "When input-stream is an echo stream, characters that are only peeked at are not echoed. In the case that peek-type is not nil, the characters that are passed by peek-char are treated as if by read-char, and so are echoed unless they have been marked otherwise by unread-char." It would appear from the above that clisp does echo characters which are only peeked at. Regards, Barry. |