[ketil@ii.uib.no: Re: Enum class]

Dylan Thurston dpt@math.harvard.edu
Wed, 24 Oct 2001 18:54:53 +0900


--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I just wanted to be sure you saw this from the Haskell list.

--Dylan Thurston

----- Forwarded message from Ketil Malde <ketil@ii.uib.no> -----

To: Pixel <pixel@mandrakesoft.com>
Cc: George Russell <ger@tzi.de>, haskell@haskell.org
Subject: Re: Enum class
From: Ketil Malde <ketil@ii.uib.no>

Pixel <pixel@mandrakesoft.com> writes:

> i':: Integer
> i'=3D 0x7fffffff
> i_plus_1' =3D i+1
>   -- ghc : 2147483648
>   -- hugs: 2147483648

> i_succ' =3D succ i'
>   -- ghc : 2147483648
>   -- hugs: -2147483648

I think Hugs is wrong.  Integer shouldn't wrap.


--dDRMvlgZJXvWKvBx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE71o/sVeybfhaa3tcRAkaEAKCT9gMEdDTqhQAfKdX5gS2QNBS4gACfSd+y
scyCN0RBaMaWBNBlmN+/zYc=
=0BmS
-----END PGP SIGNATURE-----

--dDRMvlgZJXvWKvBx--