From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Olivier Andrieu <andrieu@oxygene.ijm.jussieu.fr>
Cc: Alan Schmitt <alan.schmitt@inria.fr>,
caml-list@inria.fr,
Juergen Pfitzenmaier <pfitzen@informatik.uni-tuebingen.de>
Subject: Re: [Caml-list] Comparison of functional values
Date: Wed, 7 Mar 2001 09:56:58 +0100 [thread overview]
Message-ID: <20010307095658.A31660@pauillac.inria.fr> (raw)
In-Reply-To: <15013.63022.363394.271012@akasha.ijm.jussieu.fr>; from andrieu@oxygene.ijm.jussieu.fr on Wed, Mar 07, 2001 at 09:49:50AM +0100
> What I meant actually, was a «physical compare». I found out that
> this (crude) C function works :
>
> value phys_comp(value a, value b)
> {
> if(a<b)
> return Val_int(-1) ;
> else if(a>b)
> return Val_int(+1) ;
> else
> return Val_int(0);
> }
No, it does not: the GC can copy heap blocks and change the relative
ordering of their memory addresses. You really need to pair your
functions with unique identifying integers.
- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-03-07 8:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-06 21:51 Olivier Andrieu
2001-03-07 5:20 ` Alan Schmitt
2001-03-06 22:08 ` Juergen Pfitzenmaier
2001-03-07 8:49 ` [Caml-list] Comparison of functional values Olivier Andrieu
2001-03-07 8:56 ` Xavier Leroy [this message]
2001-03-06 22:17 Arturo Borquez
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=20010307095658.A31660@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=alan.schmitt@inria.fr \
--cc=andrieu@oxygene.ijm.jussieu.fr \
--cc=caml-list@inria.fr \
--cc=pfitzen@informatik.uni-tuebingen.de \
/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