From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: Richard Jones <rich@annexia.org>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Two camlp4 questions
Date: Sat, 26 Apr 2008 14:54:12 +0200 [thread overview]
Message-ID: <1209214299-sup-324@ausone.local> (raw)
In-Reply-To: <20080425131812.GB4100@annexia.org>
[-- Attachment #1: Type: text/plain, Size: 446 bytes --]
Excerpts from Richard Jones's message of Fri Apr 25 15:18:12 +0200 2008:
> (1) How do I match on the pattern which is literally '_' in the
> original code?
>
> match mypatt with
> | <:patt< _ >> -> ...
>
> seems like it matches any pattern.
I don't think so, it's supposed to match only the wildcard pattern.
Proof:
$ camlp4oof -str 'match x with <:patt< _ >> -> y'
match x with | Ast.PaAny _ -> y
--
Nicolas Pouillard aka Ertai
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
next prev parent reply other threads:[~2008-04-26 12:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-25 13:18 Richard Jones
2008-04-25 13:58 ` [Caml-list] " Martin Jambon
2008-04-25 14:54 ` Richard Jones
2008-04-26 12:54 ` Nicolas Pouillard [this message]
2008-04-26 16:47 ` Richard Jones
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1209214299-sup-324@ausone.local \
--to=nicolas.pouillard@gmail.com \
--cc=caml-list@inria.fr \
--cc=rich@annexia.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