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 BAA20784; Thu, 5 Apr 2001 01:38:21 +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 BAA20792 for ; Thu, 5 Apr 2001 01:38:21 +0200 (MET DST) Received: from smtp4-cm.mail.eni.net (smtp4-cm.mail.eni.net [216.133.226.137]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f34NcJH11511 for ; Thu, 5 Apr 2001 01:38:20 +0200 (MET DST) Received: from checkerlap.d6.com (node-d8e9cca2.powerinter.net [216.233.204.162]) by smtp4-cm.mail.eni.net (8.9.3/8.9.3) with ESMTP id QAA15524; Wed, 4 Apr 2001 16:38:15 -0700 Message-Id: <4.3.2.7.2.20010404162926.033b0c00@shell16.ba.best.com> X-Sender: def6@shell16.ba.best.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Wed, 04 Apr 2001 16:32:07 -0700 To: gerd@gerd-stolpmann.de, caml-list@inria.fr From: Chris Hecker Subject: Re: [Caml-list] semi-colons and begin In-Reply-To: <01040500584807.00489@ice> References: <4.3.2.7.2.20010404142255.0338a1c0@shell16.ba.best.com> <4.3.2.7.2.20010404142255.0338a1c0@shell16.ba.best.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >However, in the O'Caml >manual there is a precedence table (section 6.7) determining that "if" has >higher precedence than ";". So the first way is what the compiler interprets. Ah, duh! Thank you. Coming from C, it's hard to remember that everything is an expression, so of course the precedence table is the place to look. > If you have problems I would recommend to use Emacs as editor with one of the >two O'Caml modes. It automatically indents the code, so you see: I do use Emacs and caml-mode (what is the difference between it an tuareg, anyway?), but this was all on one line. Thanks! Chris ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr