Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Question about string ref and Hashtbl.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-03-19 (22:49)
From: Karl Zilles <zilles@1...>
Subject: Re: [Caml-list] Question about string ref and Hashtbl.
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 Archives:
Bug reports: FAQ:
Beginner's list: