Seg Fault

"Leon Smith" <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.