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: sebastien FURIC <sebastien.furic@t...>
Subject: Re: [Caml-list] Test case syntax error


Vasili Galchin wrote:
> 
>                while true do
> 
> 
>                   let (buffer:string) = "" in
>                      (* Do blocking read! *)
>                      let (x, y) = Unix.recvfrom descr
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> buffer 0 128 [MSG_OOB]
^^^^^^^^^^^^^^^^^^^^^^^^

 let _ = <expression> is not a syntactically valid expression. You have
to write let _ = <expression1> in <expression2> instead.

>                done
>           with
>              _ -> Printf.printf "%s\n" "blah";;


 Cheers,

 Sébastien.

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