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
tag hash function
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jeremy Yallop <jeremy.yallop@e...>
Subject: tag hash function
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.