[Openmcl-devel] Side effects when redefining dispatching reader macro?
Mirko Vukovic
mirko.vukovic at gmail.com
Thu Nov 12 09:05:54 PST 2015
After executing the following code (using named-readtables) reader macros
such as #C(...), #(...), #|...|# don't work.
seems to delete prior reader macros:
CL-USER> (ql:quickload :named-readtables)
CL-USER>
(named-readtables:defreadtable :test
(:merge :standard)
(:macro-char #\# :dispatch))
CL-USER> (named-readtables:in-readtable :test)
CL-USER> #C(1d0 1d0)
Error message:
Reader error on #<STRING-INPUT-STREAM #x21010256CD>, near position 2,
within "#C(1d0 1d0)
":
Undefined character #\C in a #\# dispatch macro.
The same code on SBCL does not remove the prior definitions of the reader
macro.
I don't know if that is a bug in CCL, named-readtables, or freedom allowed
under the standard.
Maybe someone can make sense of it.
Mirko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20151112/b65429ac/attachment.htm>
More information about the Openmcl-devel
mailing list