
4 Jun
2001
4 Jun
'01
3:04 a.m.
In ghc-5.00.1, "seq (2/0) 3" gives 3. Should it not give error. Hugs does. Thanks, S

4 Jun
4 Jun
5:56 a.m.
In ghc-5.00.1, "seq (2/0) 3" gives 3. Should it not give error. Hugs does.
I suspect that Hugs is wrong and ghc is right in this case. Certainly nhc98 and hbc agree with ghc's behaviour. seq x y means evaluate x to whnf and throw away the result, returning y instead. It shouldn't matter whether the result of x is bottom. Regards, Malcolm
8752
Age (days ago)
8752
Last active (days ago)
1 comments
2 participants
participants (2)
-
Malcolm Wallace
-
Saswat Anand