From: Elnatan Reisner <elnatan@cs.umd.edu>
To: Caml Mailing List <caml-list@yquem.inria.fr>
Subject: Int64 comparison
Date: Tue, 17 Mar 2009 08:51:21 -0400 [thread overview]
Message-ID: <FC17C629-D605-46B3-9690-85A119E9B223@cs.umd.edu> (raw)
Do the polymorphic ordering functions -- (<), (>), etc. -- correspond
to the numerical ordering for Int64s and Int32s? I assume so, but I
didn't see this specified anywhere.
If the answer is 'yes', is there a reason I should prefer
Int64.compare n1 n2 < 0
to
n1 < n2
? If there's no specific reason the first is better (and I don't see
why it would be), I definitely prefer the second.
-Elnatan
next reply other threads:[~2009-03-17 12:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-17 12:51 Elnatan Reisner [this message]
2009-03-17 13:12 ` [Caml-list] " Till Varoquaux
2009-03-17 15:13 ` Jérémie Dimino
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=FC17C629-D605-46B3-9690-85A119E9B223@cs.umd.edu \
--to=elnatan@cs.umd.edu \
--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