From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Szavai Gyula Newsgroups: gmane.lisp.guile.bugs Subject: [bug #30072] rest pattern after ellipsis Date: Mon, 07 Jun 2010 18:43:37 +0000 Message-ID: <20100607-184336.sv74648.70507@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: dough.gmane.org 1275936234 4565 80.91.229.12 (7 Jun 2010 18:43:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2010 18:43:54 +0000 (UTC) To: Szavai Gyula , bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Jun 07 20:43:52 2010 connect(): No such file or directory Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OLhId-0005VC-GY for guile-bugs@m.gmane.org; Mon, 07 Jun 2010 20:43:51 +0200 Original-Received: from localhost ([127.0.0.1]:46449 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLhIc-0006re-V8 for guile-bugs@m.gmane.org; Mon, 07 Jun 2010 14:43:50 -0400 Original-Received: from [140.186.70.92] (port=54472 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLhIS-0006qF-Hu for bug-guile@gnu.org; Mon, 07 Jun 2010 14:43:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLhIR-0001aI-5H for bug-guile@gnu.org; Mon, 07 Jun 2010 14:43:40 -0400 Original-Received: from colonialone.fsf.org ([140.186.70.51]:42637 helo=internal.in.savannah.gnu.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLhIR-0001aD-3x for bug-guile@gnu.org; Mon, 07 Jun 2010 14:43:39 -0400 Original-Received: from [10.1.0.103] (helo=frontend.in.savannah.gnu.org) by internal.in.savannah.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLhIP-0008SI-Tt; Mon, 07 Jun 2010 18:43:37 +0000 Original-Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1OLhIP-0003eC-SL; Mon, 07 Jun 2010 18:43:37 +0000 X-Savane-Server: savannah.gnu.org:443 [10.1.0.103] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 30072 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 X-Apparently-From: 81.183.169.15 (Savane authenticated user szgyg) Original-References: In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4621 Archived-At: URL: Summary: rest pattern after ellipsis Project: Guile Submitted by: szgyg Submitted on: Mon 07 Jun 2010 06:43:36 PM GMT Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: #| R6RS-lib 12.4: "P is of the form (P1 ... Pk Pe Pm+1 ... Pn . Px), where is the identifier ... and F is a list or improper list of n elements whose first k elements match P1 through Pk, whose next m - k elements each match Pe, whose next n - m elements match Pm+1 through Pn, and whose nth and final cdr matches Px." So, this |# (let-syntax ((m (syntax-rules () ((_ ?x ... . ?y) (list ?x ... ?y))))) (write (m '(1 2 3 . 0)))) #| is legal, but guile produces ERROR: In procedure macroexpand: ERROR: syntax-case: misplaced ellipsis in (dummy ?x ... . ?y) |# _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/