On Wed, Oct 03, 2007 at 01:22:25AM +0200, Roel van Dijk wrote:
> Does it terminate?
> 
> Looks like you are summing all the natural numbers. On a turing
> machine it should run forever,   on a real computer it should run out
> of memory. Unless I am missing something obvious :-)

There are only about 4 billion distinct values of type Int, 2 billion of
which are positive.  Integer is required for bigger values

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