Peter Graves <peter@...> writes:
> If you simply enter (PEEK-CHAR 12) at the REPL, then type 'x' and hit
> Enter after that, you get (with sbcl 0.8.7):
> debugger invoked on a SB-INT:BUG in thread 9973:
> Impossible case reached in PEEK-CHAR
> 12 is, of course, an illegal peek-type. ACL (for example) reports this
> error immediately after (PEEK-CHAR 12), without waiting for the user to
> type 'x' and hit Enter.
Thank you. If you need a quick fix, execute
(handler-bind ((error (lambda (c) (continue c))))
(defknown peek-char (&optional (or character (member nil t)) streamlike t t t)
and recompile PEEK-CHAR (it is in src/code/stream.lisp).
"Alas, the spheres of truth are less transparent than those of
illusion." -- L.E.J. Brouwer