From: Alessandro Baretta <alex@baretta.com>
To: William Lovas <wlovas@stwing.upenn.edu>,
Michael Vanier <mvanier@cs.caltech.edu>,
Ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] Pattern matching missing (or brain damage?)
Date: Fri, 19 Jul 2002 03:09:13 +0200 [thread overview]
Message-ID: <3D3766B9.6090907@baretta.com> (raw)
In-Reply-To: <20020719000859.GB22176@force.stwing.upenn.edu>
William Lovas wrote:
>
> This is legal. It's covered in the Chapter 6 of the manual, under
> Patterns, sub-heading ``Or'' patterns:
>
> http://caml.inria.fr/ocaml/htmlman/manual014.html
>
> You might be having trouble if your subpatterns don't bind exactly
> the same variables...
Many thanks to both William and Michael.
No, I was not having trouble with the bindings, since I was
only checking the variant tag. The problem is that I'm still
writing code at 3 in the morning. But at last I got it to
compile, yeah! Tomorrow, debugging...
Alex
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
prev parent reply other threads:[~2002-07-19 1:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-18 22:22 Alessandro Baretta
2002-07-18 22:36 ` Michael Vanier
2002-07-20 15:28 ` Oleg
2002-07-19 0:08 ` William Lovas
2002-07-19 1:09 ` Alessandro Baretta [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=3D3766B9.6090907@baretta.com \
--to=alex@baretta.com \
--cc=caml-list@inria.fr \
--cc=mvanier@cs.caltech.edu \
--cc=wlovas@stwing.upenn.edu \
/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