* caml_hash_variant()
@ 2005-09-30 6:48 Paul Argentoff
2005-09-30 20:25 ` [Caml-list] caml_hash_variant() Jacques Garrigue
0 siblings, 1 reply; 2+ messages in thread
From: Paul Argentoff @ 2005-09-30 6:48 UTC (permalink / raw)
To: ocaml
Hello world!
What caml_hash_variant() can be used for?
--
Yours truly, WBR, Paul Argentoff.
Jabber: paul@jabber.rtelekom.ru
RIPE: PA1291-RIPE
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] caml_hash_variant()
2005-09-30 6:48 caml_hash_variant() Paul Argentoff
@ 2005-09-30 20:25 ` Jacques Garrigue
0 siblings, 0 replies; 2+ messages in thread
From: Jacques Garrigue @ 2005-09-30 20:25 UTC (permalink / raw)
To: argentoff; +Cc: caml-list
From: Paul Argentoff <argentoff@rtelekom.ru>
> What caml_hash_variant() can be used for?
Well, what do you want to use it for?
It lets you retrieve the 31-bit representation used for a poymorphic
variant or method tag. This is useful if you want to access
polymorphic variants or objects from your C code.
Note that this hashing function is fixed, so depending on your
performence requirements you might want to compute the hashed values
before compilation, and completely drop the string representation.
Jacques Garrigue
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-30 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-30 6:48 caml_hash_variant() Paul Argentoff
2005-09-30 20:25 ` [Caml-list] caml_hash_variant() Jacques Garrigue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox