On Saturday, September 04, 2010 02:44:49 pm Ludovic Courtès wrote: > Hello! > > Stefan Israelsson Tampe writes: > > While eating the dogfood of the new match macro I come across a bug > > e.g, this does not work! > > > > (match '(a b) ((and x (a ... b)) a)) > > But: > > scheme@(guile-user)> (match '(a b) ((and x (a . b)) a)) > $1 = a > > According to the grammar in the manual, I don’t think literal ‘...’ can > be used in the middle of a list; it should only be used at the end of a > list, where it means “zero or more”: > > scheme@(guile-user)> (match '(a b) ((a ...) a)) > $2 = (a b) > > Thanks, > Ludo’. I Included a trailing pattern error message to match.scm in this patch. /Stefan