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-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  Archives: