Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.

Thanks!

Chris

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