I came across some odd behavior today regarding readtables. Specifically, 
(make-readtable base) seems to produce a readtable that is operationally 
different from `base` when reading s-expression comments. Consider the 
following code:

   ; this works
   (read (open-input-string "(1 . 2 #;3)")) ; => '(1 . 2)
   
   ; this fails
   (parameterize ([current-readtable (make-readtable (current-readtable))])
     (read (open-input-string "(1 . 2 #;3)"))) ; => read: illegal use of `.’

(see http://pasterack.org/pastes/48735 for a working demo)

Is this a bug, or is it intentional? If it’s the latter, is it documented 
anywhere?

Alexis

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to