caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Nicolas Pouillard <nicolas.pouillard@gmail.com>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Two camlp4 questions
Date: Sat, 26 Apr 2008 17:47:08 +0100	[thread overview]
Message-ID: <20080426164708.GB20686@annexia.org> (raw)
In-Reply-To: <1209214299-sup-324@ausone.local>

On Sat, Apr 26, 2008 at 02:54:12PM +0200, Nicolas Pouillard wrote:
> 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

OK thanks - I was obviously confused.

Rich.

-- 
Richard Jones
Red Hat


      reply	other threads:[~2008-04-26 16:47 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
2008-04-26 16:47   ` Richard Jones [this message]

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=20080426164708.GB20686@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=nicolas.pouillard@gmail.com \
    /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 NNTP newsgroup(s).