[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new match system bug?

From: Ludovic Courtès
Subject: Re: new match system bug?
Date: Sat, 04 Sep 2010 14:44:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)


Stefan Israelsson Tampe <address@hidden> 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))


  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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]