From: Jim Farrand <jim@farrand.net>
To: caml-list@pauillac.inria.fr
Subject: [Caml-list] Some things are more equal than others
Date: Thu, 8 Nov 2001 18:34:04 +0000 [thread overview]
Message-ID: <01110818340400.02726@draco> (raw)
Silly newbie question coming up...
What's the difference between (=) and (==)?
I know that this is almost certainly a case of RTFM, but I can't seem to find
the right place. 6.7.4 mentions "structural" and "physical" equality, but
doesn't define either.
My guess is that "physical" equality is "are these the same object", and
structural equality is "are these objects equivelent". Hence:
# "Jim"=="Jim";;
- : bool = false
# "Jim"="Jim";;
- : bool = true
I thought I'd better check I'm guessing right, or I will almost certainly
fall over this sometime in the future. :)
TIA,
Jim
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next reply other threads:[~2001-11-08 18:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-08 18:34 Jim Farrand [this message]
2001-11-08 18:46 ` Will Benton
2001-11-08 19:16 Krishnaswami, Neel
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=01110818340400.02726@draco \
--to=jim@farrand.net \
--cc=caml-list@pauillac.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