[cl-json-devel] [PATCH] Explicitly test for alist instead of type error
Clozure CL (current SVN, maybe release I dunno) does this: (map 'list #'identity '(x . "abc")) => (x #\b #\c) Which breaks the alist case in encoder.lisp. So, pending a fix for Clozure, I made a workaround that tests explicitly for a proper alist instead. Attached is the Darcs patch: -- I write stuff at http://failex.blogspot.com/ now. But the post formatter and themes are terrible for sharing code, the primary content, so it might go away sooner or later.
Stephen Compall <s11@member.fsf.org> writes:
Clozure CL (current SVN, maybe release I dunno) does this:
(map 'list #'identity '(x . "abc")) => (x #\b #\c)
Which breaks the alist case in encoder.lisp.
And is furthermore permissible behavior, as discussed in http://trac.clozure.com/openmcl/ticket/328 -- so a program may not anyway portably rely on the above signaling a type-error. -- I write stuff at http://failex.blogspot.com/ now. But the post formatter and themes are terrible for sharing code, the primary content, so it might go away sooner or later.
participants (1)
-
Stephen Compall