From: Christophe DEHLINGER <christophe.dehlinger@ifp.fr>
To: caml-list@yquem.inria.fr
Subject: type of ==
Date: Mon, 18 Apr 2005 11:18:27 +0200 [thread overview]
Message-ID: <42637B63.1070608@ifp.fr> (raw)
Hi all,
I was recently in a situation where I would have liked to be able to
test physical equality on terms of possibly different types, but
couldn't because of =='s 'a -> 'a -> bool type.
Why isn't its type 'a -> 'b -> bool ? Is there more to the
implementation of == than a simple physical, asm-level equality test ?
Is it because of the semantics of == ? If so, is a 'a -> 'b -> bool
equivalent possible / already existing ? I guess something like fun a b
-> a == (Obj.magic b) should work, but regular posts on this list have
gradually scared me off from ever using the obscure Obj module.
Christophe Dehlinger
__________________________
Ce message (et toutes ses pièces jointes éventuelles) est confidentiel et établi à l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'IFP décline toute responsabilité au titre de ce message.
This message and any attachments (the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. IFP should not be liable for this message.
Visitez notre site Web / Visit our web site : http://www.ifp.fr
__________________________
next reply other threads:[~2005-04-18 9:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-18 9:18 Christophe DEHLINGER [this message]
2005-04-18 11:27 ` [Caml-list] " Jon Harrop
2005-04-18 12:11 ` Andreas Rossberg
2005-04-18 13:10 ` Christophe DEHLINGER
2005-04-18 14:28 ` Jon Harrop
2005-04-19 7:12 ` [Caml-list] type of == - Bayesian Filter detected spam Christophe DEHLINGER
2005-04-18 16:16 ` [Caml-list] type of == Remi Vanicat
2008-01-05 16:41 Type_of? Dario Teixeira
2008-01-05 20:33 ` Type_of? Zheng Li
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=42637B63.1070608@ifp.fr \
--to=christophe.dehlinger@ifp.fr \
--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