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 KAA26989; Wed, 19 Feb 2003 10:06:10 +0100 (MET) 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 KAA26752 for ; Wed, 19 Feb 2003 10:06:09 +0100 (MET) Received: from ep09.kernel.pl (ep09.kernel.pl [212.87.11.162]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h1J968P05938 for ; Wed, 19 Feb 2003 10:06:08 +0100 (MET) Received: (qmail 32417 invoked by uid 566); 19 Feb 2003 09:06:06 -0000 Date: Wed, 19 Feb 2003 10:04:44 +0100 From: Michal Moskal To: Issac Trotts Cc: cashin@cs.uga.edu, OCaml List Subject: Re: [Caml-list] mutually dependent modules Message-ID: <20030219090444.GA3060@roke.freak> References: <4.3.2.7.2.20030217102751.0309cb70@localhost> <3E515C22.9080101@ucdavis.edu> <87k7fw6g45.fsf@cs.uga.edu> <3E5313B9.5040906@ucdavis.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E5313B9.5040906@ucdavis.edu> User-Agent: Mutt/1.4i X-PGP-Fingerprint: CF89 1B14 11BE 1CC9 2CA3 7497 5E32 69B4 BC71 B4C2 X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Feb 18, 2003 at 09:18:49PM -0800, Issac Trotts wrote: > I've seen both, but I now avoid the "let _ = " expression because if you > leave it > out then ocamlc gives a warning when you don't supply all the arguments > to a > function. The warning is good to have. let () = f a b c in let () = g c in let () = a := b in ... but after writing lots of imperative code (using camlgl), I found regular: f a b c; g c; a := b; ... clearer. All you need is to remember priority of ';' WRT if-then, match and so on. -- : Michal Moskal ::::: malekith/at/pld-linux.org : GCS {C,UL}++++$ a? !tv : PLD Linux ::::::: Wroclaw University, CS Dept : {E-,w}-- {b++,e}>+++ h ------------------- 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