
12 Jul
2007
12 Jul
'07
2:48 p.m.
On Thu, Jul 12, 2007 at 07:39:09PM +0100, Andrew Coppin wrote:
Gregory Propf wrote:
So what the hell is the difference between them? Int and Integer. They aren't synonyms clearly. What's going on?
Int = 32-bit integer.
Int = 30 bits with undefined overflow behavior That "undefined" gives implementations the freedom to use bigger representations if convenient. GHC: 31, 32 or 64 bits (from source code) Hugs: 32 bits (only tested on a 32 bit computer) YHC: 32 or 64 bits (from source code) JHC: Buggy (maxBound :: Int is negative) Stefan