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 WAA10416; Sun, 8 Apr 2001 22:12:40 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA10401 for caml-list@pauillac.inria.fr; Sun, 8 Apr 2001 22:12:39 +0200 (MET DST) 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 MAA01776 for ; Fri, 6 Apr 2001 12:05:10 +0200 (MET DST) Received: from moutvdom00.kundenserver.de (moutvdom00.kundenserver.de [195.20.224.149]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f36A5Af18960 for ; Fri, 6 Apr 2001 12:05:10 +0200 (MET DST) Received: from [195.20.224.219] (helo=mrvdom03.kundenserver.de) by moutvdom00.kundenserver.de with esmtp (Exim 2.12 #2) id 14lT6x-0000qK-00; Fri, 6 Apr 2001 12:04:59 +0200 Received: from drms-3e35783b.pool.mediaways.net ([62.53.120.59] helo=ice.gerd-stolpmann.de) by mrvdom03.kundenserver.de with esmtp (Exim 2.12 #2) id 14lT6j-00010y-00; Fri, 6 Apr 2001 12:04:45 +0200 Received: from localhost (localhost [[UNIX: localhost]]) by ice.gerd-stolpmann.de (8.9.3/8.9.3) id LAA03086; Fri, 6 Apr 2001 11:35:10 +0200 From: Gerd Stolpmann Reply-To: gerd@gerd-stolpmann.de Organization: privat To: Chris Hecker , gerd@gerd-stolpmann.de, caml-list@inria.fr Subject: Re: [Caml-list] semi-colons and begin Date: Fri, 6 Apr 2001 11:33:54 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: <4.3.2.7.2.20010404142255.0338a1c0@shell16.ba.best.com> <4.3.2.7.2.20010404162926.033b0c00@shell16.ba.best.com> In-Reply-To: <4.3.2.7.2.20010404162926.033b0c00@shell16.ba.best.com> MIME-Version: 1.0 Message-Id: <01040611351009.00489@ice> Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, 05 Apr 2001, Chris Hecker wrote: >>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. I'm a tuareg user, and this mode indents as I said. (Tuareg seems to be more correct, but is also slower than caml-mode.) Gerd -- ---------------------------------------------------------------------------- Gerd Stolpmann Telefon: +49 6151 997705 (privat) Viktoriastr. 100 64293 Darmstadt EMail: gerd@gerd-stolpmann.de Germany ---------------------------------------------------------------------------- ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr