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 XAA13165; Fri, 19 Mar 2004 23:49:19 +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 XAA08585 for ; Fri, 19 Mar 2004 23:49:18 +0100 (MET) Received: from woodstock.1969.ws (64-215-156-42.eosinc.net [64.215.156.42]) by concorde.inria.fr (8.12.10/8.12.10) with SMTP id i2JMnEHd000732 for ; Fri, 19 Mar 2004 23:49:17 +0100 Received: (qmail 8481 invoked from network); 19 Mar 2004 22:49:30 -0000 Received: from karl.1969.ws (HELO 1969.ws) (10.3.2.15) by woodstock.1969.ws with SMTP; 19 Mar 2004 22:49:30 -0000 Message-ID: <405B78D5.9040605@1969.ws> Date: Fri, 19 Mar 2004 14:48:53 -0800 From: Karl Zilles Organization: 1969 Communications, Inc. User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bob Bailey CC: Caml List Subject: Re: [Caml-list] Question about string ref and Hashtbl. References: <20040319220323.49366.qmail@web40306.mail.yahoo.com> In-Reply-To: <20040319220323.49366.qmail@web40306.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 hashtbl:01 passing:01 pointer:03 string:03 string:03 wrote:03 data:03 index:91 memory:09 memory:09 actually:11 doesn't:12 instead:15 trying:17 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 249 Bob Bailey wrote: > I am trying to only store the string once in memory. This will allow me to store the > index of the string in the dictionary instead of copying the string all over > memory. You can just pass a string around.. it doesn't actually make a copy of the data.. what you're passing is just a pointer. ------------------- 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