Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] semi-colons and begin
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-04-08 (20:12)
From: Gerd Stolpmann <gerd@g...>
Subject: Re: [Caml-list] semi-colons and begin
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 Stolpmann      Telefon: +49 6151 997705 (privat)
Viktoriastr. 100             
64293 Darmstadt     EMail:
To unsubscribe, mail  Archives: