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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jean-Christophe Filliatre <filliatr@l...>
Subject: Re: [Caml-list] Declaration

Holger Schulz writes:
 > let x ="dhshdjsa";;
 > 
 > let x =2 and y= x+2 in y;;
 > 
 > which of course delivers a type error, coss x isn't overwritten here. 
 > How the syntax for non-simultanous declaration?

  let x = 2 in
  let y = x+2 in
  y;;

-- 
Jean-Christophe

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