23 Aug
2002
23 Aug
'02
1:34 a.m.
Hugs December-2001 has the following behaviour: let fact a x = if x <= 1 then a else fact (a * x) (x - 1) in fact 1 8000 {- a darn large number -} let fact a x = if x <= 1 then a else (fact $! a * x) (x - 1) in fact 1 9000 {- a much bigger number -} let fact a x = if x <= 1 then a else fact (a * x) (x - 1) in fact 1 9000 Segmentation fault best, leon
23 Aug
23 Aug
2:08 a.m.
Probably a stack overflow which, unfortunately, causes Hugs to segfault. -- Alastair Reid alastair@reid-consulting-uk.ltd.uk Reid Consulting (UK) Limited http://www.reid-consulting-uk.ltd.uk/alastair/
8722
Age (days ago)
8722
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alastair Reid -
Leon Smith