[q-lang-users] Bug?
Brought to you by:
agraef
From: Eddie R. <ed...@bm...> - 2006-09-29 14:27:07
|
I made a mistake of using a real number .2 to a factorial function defined as fact N = if N = 0 then 1 else N * fact (N-1); and it gives a segment fault (on debian Linux). However, a factorial function defined as fact 0 = 1; fact N = N * fact (N-1); stack overflows which is what I would expect. Why the difference? Eddie |