From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Maximum non-constant constructors
Date: Thu, 17 Mar 2005 17:55:25 +0000 [thread overview]
Message-ID: <200503171755.25927.jon@ffconsultancy.com> (raw)
In-Reply-To: <20050317140034.GA7049@localhost>
On Thursday 17 March 2005 14:00, Eric Cooper wrote:
> For example, for all strings XXX, the variants `XXX and `zyctRecXXX
> collide.
So they do:
# type a = [ `ABC | `zyctRecABC ];;
Variant tags `ABC and `zyctRecABC have same hash value. Change one of them.
#
> My guess is that none of them are likely to be chosen by
> humans, but might occur in program-generated code.
Good point! I think this justifies the existence of a library function to
compare the hashes of string names of polymorphic variants. Does such a
function exist?
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists
next prev parent reply other threads:[~2005-03-17 17:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-16 19:51 Tom Hawkins
2005-03-16 20:42 ` [Caml-list] " Alain Frisch
2005-03-16 23:22 ` Tom Hawkins
2005-03-17 15:23 ` Stefan Monnier
2005-03-16 23:32 ` [Caml-list] " Richard Jones
2005-03-17 12:36 ` Jean-Christophe Filliatre
2005-03-17 14:00 ` Eric Cooper
2005-03-17 17:32 ` Marcin 'Qrczak' Kowalczyk
2005-03-17 18:27 ` Richard Jones
2005-03-17 17:55 ` Jon Harrop [this message]
2005-03-19 2:28 ` Jacques Garrigue
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=200503171755.25927.jon@ffconsultancy.com \
--to=jon@ffconsultancy.com \
--cc=caml-list@yquem.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