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
[Caml-list] Big_int comparisons
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-02-02 (13:36)
From: Alain.Frisch@e...
Subject: Re: [Caml-list] Big_int comparisons
On Mon, 2 Feb 2004, Yaron M. Minsky wrote:

> This confuses me, because as I mentioned, michel quercia appears to have
> fixed this problem while working on Numerix.  Here's his patch:

The patch solves the problem for the nat type, not for big_int.
If you know the ordering won't be the natural one for big_int, it is ok,
but this might be confusing, and for this reason Xavier Leroy rejected a
similar patch I proposed.

If you read french:

Note the problem is only for comparison, not for hashing.

> > A solution could be to allow attaching custom generic operations to
> > non-custom blocks (for instance, by boxing values in a block with a
> > special GC tag + the custom operations; i.e.: custom blocks whose content
> > is traced by the GC). This could be implemented with custom blocks by
> > registering/unregistering global roots, but I guess the performance would
> > be bad.
> Is that what Michel did?


-- Alain

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: