From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id D3563BB9A for ; Tue, 4 Oct 2005 20:06:08 +0200 (CEST) Received: from web26809.mail.ukl.yahoo.com (web26809.mail.ukl.yahoo.com [217.146.176.85]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id j94I68td013422 for ; Tue, 4 Oct 2005 20:06:08 +0200 Received: (qmail 78157 invoked by uid 60001); 4 Oct 2005 18:06:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=CnfF2lEGMNyo4FzQR3IRtlcRk1zvd+TdKHjVjsW0rROiV4IxJJxRWAbVRIxzmi0aFC8Qi/s3+eYvx1eGCAo0LeIF9Bg641eJ/zTMwQ9dOuWB7OelElL5+4VzmgC6Q3t/QnvgVzZEzLkPkM3fwH/ByQnyDzDn9j24QL+Q3keZuiQ= ; Message-ID: <20051004180606.78155.qmail@web26809.mail.ukl.yahoo.com> Received: from [83.180.78.160] by web26809.mail.ukl.yahoo.com via HTTP; Tue, 04 Oct 2005 20:06:06 CEST Date: Tue, 4 Oct 2005 20:06:06 +0200 (CEST) From: Martin Chabr Subject: Ant: Re: Ant: Re: Ant: Re: Ant: Re: [Caml-list] Avoiding shared data To: Jon Harrop Cc: caml-list@yquem.inria.fr In-Reply-To: <200510032208.35273.jon@ffconsultancy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 4342C490.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 avoiding:01 arrays:01 auf:98 ihre:98 wrote:01 int:01 ren:01 data:02 sie:96 let:03 complex:04 shared:04 elements:05 aspx:92 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=DNS_FROM_RFC_ABUSE autolearn=disabled version=3.0.3 --- Jon Harrop wrote: > If you mean this: > > # let a = Array.make 3 (ref 0) in (a.(0) := 3; a);; > - : int ref array = [|{contents = 3}; {contents = > 3}; {contents = 3}|] > > I don't want arrays of elements referencing the same > value. So I don't create > them. I do not disagree. The trouble on my side is that it is very easy to get them and difficult not to get them or get rid of them, once the programs get more complex. Martin ___________________________________________________________ Was denken Sie über E-Mail? Wir hören auf Ihre Meinung: http://surveylink.yahoo.com/wix/p0379378.aspx