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 KAA12320; Wed, 12 Sep 2001 10:47:38 +0200 (MET DST) 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 KAA12625 for ; Wed, 12 Sep 2001 10:47:37 +0200 (MET DST) Received: from pochi.inria.fr (pochi.inria.fr [128.93.8.128]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f8C8lWD00173; Wed, 12 Sep 2001 10:47:32 +0200 (MET DST) Received: (from mentre@localhost) by pochi.inria.fr (8.11.1/8.10.0) id f8C8lWS02833; Wed, 12 Sep 2001 10:47:32 +0200 X-Authentication-Warning: pochi.inria.fr: mentre set sender to David.Mentre@inria.fr using -f To: "SooHyoung Oh" Cc: "caml-list" Subject: Re: [Caml-list] Why warning? References: <00b901c13b53$4e3bc9b0$1e01a8c0@hama> From: David Mentre Date: 12 Sep 2001 10:47:32 +0200 In-Reply-To: <00b901c13b53$4e3bc9b0$1e01a8c0@hama> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk "SooHyoung Oh" writes: > Where can I get infomation about this? (ex: 'nnn' page on manual, articles > or books) I've not found any pointer that explains this specific point. > # 1; 2;; > Warning: this expression should have type unit. > - : int = 2 If you decompose this expression, you have: # 1;; - : int = 1 <-- notice the type of '1' is 'int' # 2;; - : int = 2 In an expression 'expr1 ; expr2', expr1 should have type unit as its result is not accessible to expr2. Hope it helps, d. -- David.Mentre@inria.fr Opinions expressed here are only mine. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr