Dave Peticolas <[EMAIL PROTECTED]> writes:

> It just ran out of stack. I changed it to use iteration, could you
> try it now?

Did it actually run out of stack during a tail recursion?  If so, then
that's a nasty bug in guile that we should be aware of.

(For those who don't know, scheme is required to handle tail-recursion
 with no stack growth, so

  (define (foo n)
    (if (= n 0)
        #t
        (foo (- n 1))))

 is guaranteed to take finite (normally trivial) stack space, no
 matter how large n is.  In fact, in most implementations, "do" is
 just a macro that expands to a "let loop" or other simple recursion.)


-- 
Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930

--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]


Reply via email to