From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id DAA21462; Fri, 19 Jul 2002 03:02:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA21458 for ; Fri, 19 Jul 2002 03:02:00 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from athlon.baretta.com (r-mi214-6a13.tin.it [62.211.4.13]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6J11xT21357 for ; Fri, 19 Jul 2002 03:01:59 +0200 (MET DST) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id C515E2724F; Fri, 19 Jul 2002 03:09:13 +0200 (CEST) Message-ID: <3D3766B9.6090907@baretta.com> Date: Fri, 19 Jul 2002 03:09:13 +0200 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: it, en MIME-Version: 1.0 To: William Lovas , Michael Vanier , Ocaml Subject: Re: [Caml-list] Pattern matching missing (or brain damage?) References: <3D373FB4.20509@baretta.com> <20020719000859.GB22176@force.stwing.upenn.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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