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 NAA00455; Tue, 15 Jul 2003 13:36:52 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA05720 for ; Tue, 15 Jul 2003 13:36:51 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h6FBaoT20544 for ; Tue, 15 Jul 2003 13:36:51 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 19cO70-0001YT-00 for ; Tue, 15 Jul 2003 12:36:50 +0100 Date: Tue, 15 Jul 2003 12:36:49 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] 'should have type unit' warning in 'let _ =' ? Message-ID: <20030715113649.GA5950@redhat.com> References: <20030715100436I.garrigue@kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030715100436I.garrigue@kurims.kyoto-u.ac.jp> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 'let:01 0900,:01 jacques:01 expr:01 freshmeat:01 ltd:98 irrelevant:01 garrigue:01 business:96 wrote:03 partial:03 data:03 let:04 jul:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Jul 15, 2003 at 10:04:36AM +0900, Jacques Garrigue wrote: > By the way, there is a reason "let _ =" produces no warning: this is > the only way to do a partial application without warning. > "expr; ..." and even "ignore (expr); ..." will produce a warning. Interesting ... what's the use of a partial application which is then ignored? Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. All new technology is irrelevant until it is taken up by the public. ------------------- 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