From: Andy Wingo <wingo@pobox.com>
To: bug-guile <bug-guile@gnu.org>
Cc: ludo@gnu.org
Subject: peval error
Date: Sat, 10 Sep 2011 10:35:53 -0700 [thread overview]
Message-ID: <874o0kti4m.fsf@pobox.com> (raw)
Hi!
I'm excited about the partial evaluator. However there is one error
I've found:
(letrec ((fold (lambda (f x b null? car cdr)
(if (null? x)
b
(f (car x) (fold f (cdr x) b null? car cdr))))))
(fold * x 1 zero? (lambda (x) x) (lambda (x) (- x 1))))
The expansion ends up with the body including lexical-refs to `car' and
`cdr', but they aren't bound in the letrec body.
Andy
--
http://wingolog.org/
next reply other threads:[~2011-09-10 17:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-10 17:35 Andy Wingo [this message]
2011-09-10 23:05 ` peval error Ludovic Courtès
2011-09-13 17:04 ` Ludovic Courtès
2011-09-15 18:23 ` Andy Wingo
2011-09-15 21:44 ` Ludovic Courtès
2011-09-16 10:02 ` Ludovic Courtès
2011-09-17 0:43 ` Andy Wingo
2011-09-17 10:31 ` Ludovic Courtès
2011-09-17 14:52 ` Ludovic Courtès
2011-09-17 17:54 ` Andy Wingo
2011-09-18 10:00 ` bug#9542: " Ludovic Courtès
2011-09-18 21:05 ` Ludovic Courtès
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=874o0kti4m.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=bug-guile@gnu.org \
--cc=ludo@gnu.org \
/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).