[plt-scheme] ellipsis following pattern datum / literal is broken

From: David Van Horn (dvanhorn at cs.brandeis.edu)
Date: Thu Jul 12 04:50:00 EDT 2007

[ It looks like bugs.plt-scheme.org is down. ]

A macro definition that includes patterns such as (42 ...) or (#t ...) 
or (<literal> ...), where <literal> is declared as a literal identifier 
for the macro, will cause an append error when matching against 0 elements.

For example (370.6-svn10jul2007):

(define-syntax f
   (syntax-rules ()
     ((f 42 ...) #t)))
(f)
append: expected argument of type <proper list>; given #<syntax:4:1>

(define-syntax g
   (syntax-rules (x)
     ((g x ...) #t)))
(g)
append: expected argument of type <proper list>; given #<syntax:4:1>

David



Posted on the users mailing list.