From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA31256; Tue, 4 May 2004 17:41:34 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA31205 for ; Tue, 4 May 2004 17:41:33 +0200 (MET DST) Received: from lri.lri.fr (lri.lri.fr [129.175.15.1]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i44FeUSJ017410 for ; Tue, 4 May 2004 17:41:33 +0200 Received: from pc8-123 (pc8-123 [129.175.8.123]) by lri.lri.fr (8.12.10/jtpda-5.4) with ESMTP id i44FRACr016397 ; Tue, 4 May 2004 17:27:11 +0200 (MEST) Received: from filliatr by pc8-123 with local (Exim 3.35 #1 (Debian)) id 1BL1p8-00023q-00; Tue, 04 May 2004 17:27:10 +0200 From: Jean-Christophe Filliatre MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16535.46670.330033.464901@gargle.gargle.HOWL> Date: Tue, 4 May 2004 17:27:10 +0200 To: Holger Schulz Cc: caml-list@inria.fr Subject: Re: [Caml-list] Declaration In-Reply-To: References: X-Mailer: VM 7.03 under Emacs 20.7.2 Reply-To: Jean-Christophe.Filliatre@lri.fr (Jean-Christophe Filliatre) X-MailScanner: Found to be clean X-Loop: caml-list@inria.fr X-Spam: no; 0.00; filliatre:01 filliatr:01 lri:01 caml-list:01 schulz:99 delivers:99 overwritten:01 writes:01 syntax:02 let:04 let:04 type:07 declaration:09 declaration:09 isn't:11 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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