unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* syntax-case guards
@ 2013-02-03 23:56 Aleix Conchillo Flaqué
  2013-02-04  0:52 ` Stephen Compall
  2013-02-04  1:14 ` Ian Price
  0 siblings, 2 replies; 4+ messages in thread
From: Aleix Conchillo Flaqué @ 2013-02-03 23:56 UTC (permalink / raw)
  To: guile-user

Hi,

I'm trying to use a syntax-case guard when the pattern has ellipsis.
So I have something like,

      ((_ (struct (k v) ...))
       (string? (syntax->datum #'k))
       exp)

And I want k to be a string. However, I am getting this error:

missing ellipsis in form (syntax k)

In ice-9/boot-9.scm:
   106:20  0 (#<procedure 297a240 at ice-9/boot-9.scm:97:6 (thrown-k .
args)> # …)

For patterns without ellipsis it works great.

So, how do I make the guard when I have a pattern with ellipsis?

Thanks in advance,

Aleix



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

end of thread, other threads:[~2013-02-04  5:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-03 23:56 syntax-case guards Aleix Conchillo Flaqué
2013-02-04  0:52 ` Stephen Compall
2013-02-04  1:14 ` Ian Price
2013-02-04  5:19   ` Aleix Conchillo Flaqué

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