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-04 (23:38)
From: Chris Hecker <checker@d...>
Subject: Re: [Caml-list] semi-colons and begin

>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.



To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr