From: Jeremy Yallop <jeremy.yallop@ed.ac.uk>
To: caml-list@inria.fr
Subject: tag hash function
Date: Tue, 29 May 2007 19:00:20 +0100 [thread overview]
Message-ID: <465C6A34.6050202@ed.ac.uk> (raw)
Is there any kind of guarantee that given the name of a tag `T as a
string t that
(Obj.magic (CamlinternalOO.public_method_label t) : int)
will compute the hash code used to represent t? Is there a better way
to access the hash function (passing a string, not a tag)? Of course, I
could reimplement it myself, but I'd like something that will track any
changes to the internal function.
I'm trying to compute hash codes in a camlp4 extension.
Jeremy.
reply other threads:[~2007-05-29 18:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=465C6A34.6050202@ed.ac.uk \
--to=jeremy.yallop@ed.ac.uk \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox