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 WAA28864; Mon, 17 Nov 2003 22:48:23 +0100 (MET) 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 WAA29984 for ; Mon, 17 Nov 2003 22:48:22 +0100 (MET) Received: from bob.west.spy.net (mail.west.spy.net [66.149.231.226]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAHLmK126799 for ; Mon, 17 Nov 2003 22:48:21 +0100 (MET) Received: from [10.9.254.240] (sjc-dist3-e3.2wire.com [63.203.253.2]) by bob.west.spy.net (Postfix) with ESMTP id 996EF6346; Mon, 17 Nov 2003 13:48:14 -0800 (PST) In-Reply-To: <5CBC9D22-1941-11D8-BBC4-000393CFE6B8@spy.net> References: <3FB92396.4060908@ntlworld.com> <5CBC9D22-1941-11D8-BBC4-000393CFE6B8@spy.net> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: caml-list@inria.fr, "chris.danx" From: Dustin Sallings Subject: Re: [Caml-list] Closure & Ref Date: Mon, 17 Nov 2003 13:48:15 -0800 To: Dustin Sallings X-Mailer: Apple Mail (2.606) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 closure:01 nov:01 wrote:03 let:04 let:04 i'm:07 fun:08 similar:09 something:09 difference:12 difference:12 spy:84 don't:16 02,:18 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Nov 17, 2003, at 13:02, Dustin Sallings wrote: >> let prodAdd x = >> let value = ref x in >> fun y -> !value + y;; > > This is very similar to > > let prodAdd x y = x + y;; > > The only difference is that I'm making a reference with the value of > x. I don't know what happened to this sentence. It should read something more like, ``The only difference is that you're making a reference with the value of x unnecessarily.'' -- Dustin Sallings ------------------- 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