unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Aleix Conchillo Flaqué" <aconchillo@gmail.com>
To: guile-user <guile-user@gnu.org>
Subject: syntax-case guards
Date: Sun, 3 Feb 2013 15:56:38 -0800	[thread overview]
Message-ID: <CA+XASoXBELxXxy=Br9cAjmoVra5Q4rdb4v5LafCwK4g=RQpWAg@mail.gmail.com> (raw)

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



             reply	other threads:[~2013-02-03 23:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-03 23:56 Aleix Conchillo Flaqué [this message]
2013-02-04  0:52 ` syntax-case guards Stephen Compall
2013-02-04  1:14 ` Ian Price
2013-02-04  5:19   ` Aleix Conchillo Flaqué

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='CA+XASoXBELxXxy=Br9cAjmoVra5Q4rdb4v5LafCwK4g=RQpWAg@mail.gmail.com' \
    --to=aconchillo@gmail.com \
    --cc=guile-user@gnu.org \
    /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).