Pete Kazmier <pete-sbcl-dev-june-2004@...> writes:
> Is there any reason why OUTPUT-STREAM-P is not specialized for a
> FUNDAMENTAL-INPUT-STREAM? And likewise, is there any reason why
> INPUT-STREAM-P is not specialized for a FUNDAMENTAL-OUTPUT-STREAM in
> gray-streams.lisp? In the current SBCL codebase, INPUT-STREAM-P is
> only specialized on a FUNDAMENTAL-INPUT-STREAM, while OUTPUT-STREAM-P
> is only specialized on a FUNDAMENTAL-OUTPUT-STREAM.
I think you're right, and that this was a deficiency in sbcl's Gray
streams implementation. I've checked in a fix (slightly different
from yours: specializing methods on FUNDAMENTAL-STREAM itself) into
sbcl-0.8.13.21; please shout if you have any problems with it.
http://www-jcsu.jesus.cam.ac.uk/~csr21/ +44 1223 510 299/+44 7729 383 757
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b)))
(defvar b "~&Just another Lisp hacker~%") (pprint #36rJesusCollegeCambridge)