wolfgang:
> Am Dienstag, 27. April 2004 07:09 schrieb Donald Bruce Stewart:
>
> > > > To ask a silly question, is Int defined as 32 bits or is it defined in
> > > > a similar vein to C's int?
> >
> > Well, you can all look this up, at least in GHC's implementation:
>
> It seems that people someti
Am Dienstag, 27. April 2004 07:09 schrieb Donald Bruce Stewart:
> [...]
> > > To ask a silly question, is Int defined as 32 bits or is it defined in
> > > a similar vein to C's int?
>
> Well, you can all look this up, at least in GHC's implementation:
It seems that people sometimes tend to think
Am Dienstag, 27. April 2004 00:55 schrieb Don Groves:
> [...]
> Wolfgang and Remi,
>
> Thanks to you both for the explanation. Yes, the GHC Integer
> type does what I was referring to and clearly anything done at
> runtime will slow execution.
>
> For future reference, if I know an integer will ne
On Mon, 26 Apr 2004 21:21:09 +0200, Remi Turk <[EMAIL PROTECTED]> wrote:
On Mon, Apr 26, 2004 at 08:58:53PM +0200, Wolfgang Jeltsch wrote:
Am Montag, 26. April 2004 20:45 schrieb Don Groves:
> Some languages handle the Int/Integer question automatically,
> determined by the size of the integer in
On Mon, Apr 26, 2004 at 08:58:53PM +0200, Wolfgang Jeltsch wrote:
> Am Montag, 26. April 2004 20:45 schrieb Don Groves:
> > Some languages handle the Int/Integer question automatically,
> > determined by the size of the integer in question. Int is used
> > until the integer excedes what the underl
Am Montag, 26. April 2004 20:45 schrieb Don Groves:
> [...]
> Hello, Haskell newbie here.
>
> Some languages handle the Int/Integer question automatically,
> determined by the size of the integer in question. Int is used
> until the integer excedes what the underlying architecture can
> handle, t
Wolfgang Jeltsch <[EMAIL PROTECTED]> writes:
> > To ask a silly question, is Int defined as 32 bits or is it defined in a
> > similar vein to C's int?
>
> I think it is defined to cover at least the numbers from
> -(2 ^ 27) + 1
> to
> 2 ^ 27 - 1.
Actually, according to section 6.4 of the
Am Montag, 26. April 2004 17:06 schrieb Philippa Cowderoy:
> [...]
> To ask a silly question, is Int defined as 32 bits or is it defined in a
> similar vein to C's int?
I think it is defined to cover at least the numbers from
-(2 ^ 27) + 1
to
2 ^ 27 - 1.
So its exact range is implementati