Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] The Makefile
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Remi Vanicat <remi.vanicat@l...>
Subject: Re: [Caml-list] Test case syntax error
John Carr <jfc@mit.edu> writes:

>>  let _ = <expression> is not a syntactically valid expression. You have
>> to write let _ = <expression1> in <expression2> instead.
>
> Except at toplevel, where you must use the first form instead of the
> second.

"let _ = <expression>" is not a expression, it is a definition. The
same way "type <name> = <type-decl>" is.

-- 
Rémi Vanicat

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners