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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to