[plt-scheme] syntax-rules bug

From: Andre van Tonder (andre at now.het.brown.edu)
Date: Tue Sep 14 17:14:47 EDT 2004

Hi,

Is the following a known bug, or is the code incorrect?

(define-syntax test
   (syntax-rules ()
     ((test . #t)    1)
     ((test . #f)    2)
     ((test . other) 3)))

(test . #f)   ==> 2 
(test a b)
      ==>
          syntax-e: expects argument of type <syntax>; given
                    (#<syntax:8:6> #<syntax:8:8>)

Regards
Andre van Tonder


Posted on the users mailing list.