From: Szavai Gyula <INVALID.NOREPLY@gnu.org>
To: Szavai Gyula <szgyg@ludens.elte.hu>, bug-guile@gnu.org
Subject: [bug #30072] rest pattern after ellipsis
Date: Mon, 07 Jun 2010 18:43:37 +0000 [thread overview]
Message-ID: <20100607-184336.sv74648.70507@savannah.gnu.org> (raw)
In-Reply-To:
URL:
<http://savannah.gnu.org/bugs/?30072>
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 <ellipsis> Pm+1 ... Pn . Px), where
<ellipsis> 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:
<http://savannah.gnu.org/bugs/?30072>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
next reply other threads:[~2010-06-07 18:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-07 18:43 Szavai Gyula [this message]
2011-06-09 21:39 ` [bug #30072] rest pattern after ellipsis Stefan Israelsson Tampe
2011-06-17 18:17 ` Andy Wingo
2011-06-17 21:36 ` Stefan Israelsson Tampe
2011-06-20 12:27 ` Stefan Israelsson Tampe
2011-06-21 20:46 ` Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100607-184336.sv74648.70507@savannah.gnu.org \
--to=invalid.noreply@gnu.org \
--cc=bug-guile@gnu.org \
--cc=szgyg@ludens.elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).