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 KAA13518; Wed, 2 Jun 2004 10:31:51 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA14137 for ; Wed, 2 Jun 2004 10:31:50 +0200 (MET DST) Received: from tcs.inf.tu-dresden.de (orchid.inf.tu-dresden.de [141.76.75.101]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i528VnEV014771 for ; Wed, 2 Jun 2004 10:31:49 +0200 Received: from ithif51.inf.tu-dresden.de (ithif51 [141.76.75.51]) by tcs.inf.tu-dresden.de (8.12.9/8.12.9) with ESMTP id i528VmOr001070 for ; Wed, 2 Jun 2004 10:31:48 +0200 (MET DST) Received: from tews by ithif51.inf.tu-dresden.de with local (Exim 3.36 #1 (Debian)) id 1BVRA4-0000Gw-00 for ; Wed, 02 Jun 2004 10:31:48 +0200 To: caml-list@inria.fr Subject: Re: [Caml-list] Strange syntax behavior References: <20040601171354.GA16495@excelhustler.com> From: Hendrik Tews Date: 02 Jun 2004 10:31:48 +0200 In-Reply-To: <20040601171354.GA16495@excelhustler.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) at tcs.inf.tu-dresden.de X-Miltered: at nez-perce with ID 40BD9075.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 hendrik:01 tews:01 tews:01 bug:01 hendrik:01 htmlman:01 tu-dresden:01 ocaml:01 caml:01 writes:01 syntax:02 behavior:03 clause:05 clause:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk John Goerzen writes: [...] In the case of if...then...else, the else clause appears to consume only the first statement following. With try..with, the with clause appears to consume everything it possibly can, despite even attempts to stop that with a begin..end clause. Is this a bug or a feature? It's definitely a feature, even documented! See the preverence table just before Section 6.7.1 in http://caml.inria.fr/ocaml/htmlman/manual015.html Bye, Hendrik ------------------- 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