English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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 caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners