Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Int64 comparison
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-03-17 (12:51)
From: Elnatan Reisner <elnatan@c...>
Subject: Int64 comparison
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 n1 n2 < 0
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.