[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New to the group...

From: Neil Jerram
Subject: Re: New to the group...
Date: Thu, 04 May 2006 16:57:21 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

"Jason Meade" <address@hidden> writes:

> My name's Jason. I'm new to Scheme, but am definitely a fan! It seems
> to me that extensible and embeddable frameworks are the new
> programming model for the 21st century. I'd like to see guile grow in
> this respect, and am able to contribute however possible. :)

Nice to meet you!

> Initially, I'd like to take a look at why guile bombs on recursive
> algorithms. For example:
> (define fact
>   (lambda (n)
>     (cond
>      ((= n 1) 1)
>      (else
>       (* n (fact (- n 1)))))))
> guile> (fact 69)
> 171122452428141311372468338881272839092270544893520369393648040923257279754140647424000000000000000
> guile> (fact 70)
> ERROR: Stack overflow
> ABORT: (stack-overflow)

This is a feature: if you write a program by mistake that recurses
forever using more and more stack, Guile will catch it for you.

If you'd like to disable this checking, just say (debug-set! stack 0).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]