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 GAA22449; Wed, 19 Feb 2003 06:13:18 +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 GAA22444 for ; Wed, 19 Feb 2003 06:13:17 +0100 (MET) Received: from marble.he.net (marble.he.net [216.218.230.2]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h1J5DGP29248 for ; Wed, 19 Feb 2003 06:13:16 +0100 (MET) Received: from ucdavis.edu ([208.227.214.58] (may be forged)) by marble.he.net (8.8.6/8.8.2) with ESMTP id VAA07858; Tue, 18 Feb 2003 21:13:11 -0800 Message-ID: <3E5313B9.5040906@ucdavis.edu> Date: Tue, 18 Feb 2003 21:18:49 -0800 From: Issac Trotts User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020913 Debian/1.1-1 MIME-Version: 1.0 To: cashin@cs.uga.edu CC: OCaml List Subject: Re: [Caml-list] mutually dependent modules References: <4.3.2.7.2.20030217102751.0309cb70@localhost> <3E515C22.9080101@ucdavis.edu> <87k7fw6g45.fsf@cs.uga.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk cashin@cs.uga.edu wrote: >Issac Trotts writes: > >... > > >>let _ = A.f2 := B.f2 >> >> > >I've seen this before, but why is it preferable to this? > > A.f2 := B.f2 > > >There's an article on comp.lang.ml where Xavier Leroy mentions this >syntax as a way to get module initialization code to run ... but I get >the impression that folks are using it when it's semantically >equivalent to the same thing with the "let _ = " omitted entirely. > 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. Issac ------------------- 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