caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Int64 comparison
@ 2009-03-17 12:51 Elnatan Reisner
  2009-03-17 13:12 ` [Caml-list] " Till Varoquaux
  2009-03-17 15:13 ` Jérémie Dimino
  0 siblings, 2 replies; 3+ messages in thread
From: Elnatan Reisner @ 2009-03-17 12:51 UTC (permalink / raw)
  To: Caml Mailing List

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-17 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-17 12:51 Int64 comparison Elnatan Reisner
2009-03-17 13:12 ` [Caml-list] " Till Varoquaux
2009-03-17 15:13 ` Jérémie Dimino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).