caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* symbol managment in Caml
@ 2000-02-25 12:16 Stephan Houben
  2000-02-25 16:21 ` skaller
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Stephan Houben @ 2000-02-25 12:16 UTC (permalink / raw)
  To: caml-list

Hello list,

I am writing an interpreter for a simple language in O'Caml.
The interpreter often needs to search a hash table with a string
as key. A common optimization for this is to use pointer identity
instead of string equality, and "intern" every string before using
it as a key to the hash table.

Unfortunately, I don't see how to do this with the current O'Caml
libs. You can do identity checks with ==, but there seems no way
to get a good hash corresponding to ==.

Has anyone already written some code for this task?

Thanks in advance,

Stephan



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-02-28 23:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-25 12:16 symbol managment in Caml Stephan Houben
2000-02-25 16:21 ` skaller
2000-02-25 16:25 ` Judicael Courant
2000-02-25 17:10 ` Claudio Sacerdoti Coen
2000-02-26  6:13   ` Frank A. Christoph
2000-02-28  9:49 ` Sven LUTHER

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).