debugger invoked on condition of type TYPE-ERROR
The value NIl is not of type READTABLE.
which is perfectly reasonable. But ANSI gives in one of its examples
for COPY-READTABLE that exact call and it doesn't return an error.
Looking at src/code/reader.lisp, I think I see what the problem
(defun copy-readtable (&optional (from-readtable *standard-readtable*)
I'm guessing that the type inference algorithm deduces that, since
FROM-READTABLE defaults to a readtable, FROM-READTABLE shall always be
a readtable. I think this can be cleaned up by an appropriate DECLARE
in the body of the function. Does that sound reasonable?
From: William Harold Newman <william.newman@ai...> - 2001-12-27 18:23:25
On Mon, Dec 24, 2001 at 10:25:03PM +0300, Alexey Dejneka wrote:
> I've looked through the rest of functions in CLHS 23.2 and fixed the
> readtable designator treatment.
Thank you. This and your original READTABLE patch are now in
sbcl-0.pre7.101, just checked in.
William Harold Newman <william.newman@...>
HAPPY HACKING TO ALL, AND I'LL BE BACK NEXT YEAR!
PGP key fingerprint 85 CE 1C BA 79 8D 51 8C B9 25 FB EE E0 C3 E5 7C