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 VAA14282; Tue, 29 Oct 2002 21:53:17 +0100 (MET) 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 VAA14529 for ; Tue, 29 Oct 2002 21:53:17 +0100 (MET) Received: from inria.fr (nas-cbv-11-62-147-117-195.dial.proxad.net [62.147.117.195]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9TKrF513412 for ; Tue, 29 Oct 2002 21:53:15 +0100 (MET) Date: Tue, 29 Oct 2002 21:53:26 +0100 Subject: Re: [Caml-list] CamlP4 Revised syntax comment Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v546) From: Damien Doligez To: caml-list@inria.fr Content-Transfer-Encoding: 7bit In-Reply-To: <20021029.104703.59470751.avv@quasar.ipa.nw.ru> Message-Id: <788CDCDD-EB80-11D6-B534-0003930FCE12@inria.fr> X-Mailer: Apple Mail (2.546) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >>>> match a with >>>> | 0 -> >>>> | n -> >>>> end > but in the standard syntax you have to use parentheses over the entire > 'match...' > to resolve ambiguity. I find the following solution quite satisfactory, if a bit verbose: begin match a with | 0 -> ... | n -> ... end -- Damien ------------------- 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