ketil+haskell at ii.uib.no
Mon Apr 26 12:19:24 EDT 2004
David Roundy <droundy at abridgegame.org> writes:
> I'd say that rather than returning an Integer, we'd be better off just
> using a 64 bit Int on 64 platforms.
| 7.19.2. GHC's interpretation of undefined behaviour in Haskell 98
| This section documents GHC's take on various issues that are left
| undefined or implementation specific in Haskell 98.
| Sized integral types
| In GHC the Int type follows the size of an address on the host
| architecture; in other words it holds 32 bits on a 32-bit
| machine, and 64-bits on a 64-bit machine.
Looks like a reasonable way to go about it.
If I haven't seen further, it is by standing in the footprints of giants
More information about the Glasgow-haskell-users