English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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:   gerd@gerd-stolpmann.de
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr