From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 75690BC69 for ; Tue, 29 May 2007 20:06:18 +0200 (CEST) Received: from bdmail1.accesst.com (pop.bulldoghome.com [83.245.1.230]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l4TI6HPN029480 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 29 May 2007 20:06:18 +0200 Received: from host-84-9-232-27.bulldogdsl.com ([84.9.232.27] helo=[192.168.123.191]) by bdmail1.accesst.com with esmtpa (Exim 4.50) id 1Ht63S-0004j2-1f for caml-list@inria.fr; Tue, 29 May 2007 19:04:22 +0100 Message-ID: <465C6A34.6050202@ed.ac.uk> Date: Tue, 29 May 2007 19:00:20 +0100 From: Jeremy Yallop User-Agent: Mozilla-Thunderbird 2.0.0.0 (X11/20070521) MIME-Version: 1.0 To: caml-list@inria.fr Subject: tag hash function Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 465C6B99.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; hash:01 hash:01 reimplement:01 camlp:01 int:01 string:02 string:02 passing:04 i'd:05 extension:05 label:07 function:08 function:08 i'm:09 compute:09 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.