larcenists / larceny

Larceny Scheme implementation
Other
201 stars 32 forks source link

ellipses bug in R5RS macro expander #665

Open larceny-trac-import opened 11 years ago

larceny-trac-import commented 11 years ago

Reported by: will on Tue Jan 18 19:19:17 2011 Reported by Emmanuel Medernach.

(define-syntax foo
 (syntax-rules ()
   ((foo (a ...) (b ...))
    (list (list a b ...) ...))))
> (foo (1 2 3) (4 5 6))
Error: cdr: () is not a pair.

Will confirmed that this happens only with the R5RS macro expander. ERR5RS/R6RS modes are okay with this.

WillClinger commented 7 years ago

Most bugs in the R5RS macro expander are now considered minor, so long as they're fixed in the R7RS macro expander.