From: William Xu <william.xwl@gmail.com>
Subject: stack overflow problem
Date: Sat, 04 Feb 2006 18:54:04 +0800 [thread overview]
Message-ID: <87slqzl7hv.fsf@www.williamxu.com> (raw)
Hi,
I define the following function,
(define (enumerate-interval low high)
"Return a sequence list by walking from LOW to HIGH.
e.g.,
(enumerate-interval 1 10)
=> (1 2 3 4 5 6 7 8 9 10)"
(if (> low high)
'()
(cons low (enumerate-interval (1+ low) high))))
When i passed it a slightly big interval, guile complains "stack
overflow",
guile > (enumerate-interval 1 400)
...
guile > (enumerate-interval 1 500)
ERROR: Stack overflow
ABORT: (stack-overflow)
guile>
Might be a bug? (i also tested this on mzscheme, and works fine.)
Guile version: 1.6.7, debian unstable.
--
William
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
next reply other threads:[~2006-02-04 10:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-04 10:54 William Xu [this message]
2006-02-04 23:03 ` stack overflow problem Chusslove Illich
2006-02-05 1:18 ` Stephen Compall
2006-02-05 14:08 ` William Xu
2006-02-13 18:08 ` Holger Blasum
-- strict thread matches above, loose matches on Subject: below --
2006-02-04 17:09 William Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87slqzl7hv.fsf@www.williamxu.com \
--to=william.xwl@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).