16 May
2001
16 May
'01
10:54 a.m.
Hello,
Can someone explain the following behaviour? Or is it a bug in hugs?
I can not explain it. Rather strange is that even this is allowed: (fromIntegral (toInteger (minBound::Int) + 1) -1) :: Int yielding -2147483648
(fromIntegral(toInteger(minBound::Int))::Int)
Program error: {primIntegerToInt (-2147483648)} (15 reductions, 70 cells)
(fromIntegral(toInteger((minBound::Int)+1))::Int) -2147483647 (21 reductions, 29 cells)
minBound::Int -2147483648 (9 reductions, 19 cells)
9239
Age (days ago)
9239
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rijk-Jan van Haaften