unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [bug #30072] rest pattern after ellipsis
@ 2010-06-07 18:43 Szavai Gyula
  2011-06-09 21:39 ` Stefan Israelsson Tampe
  0 siblings, 1 reply; 6+ messages in thread
From: Szavai Gyula @ 2010-06-07 18:43 UTC (permalink / raw)
  To: Szavai Gyula, bug-guile


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/




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-21 20:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-07 18:43 [bug #30072] rest pattern after ellipsis Szavai Gyula
2011-06-09 21:39 ` 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

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).