From: ludo@gnu.org (Ludovic Courtès)
To: Andy Wingo <wingo@pobox.com>
Cc: bug-guile <bug-guile@gnu.org>
Subject: Re: peval error
Date: Tue, 13 Sep 2011 19:04:36 +0200 [thread overview]
Message-ID: <87d3f4s7a3.fsf@gnu.org> (raw)
In-Reply-To: <874o0kti4m.fsf@pobox.com> (Andy Wingo's message of "Sat, 10 Sep 2011 10:35:53 -0700")
Hi,
Andy Wingo <wingo@pobox.com> skribis:
> 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.
I believe this is now fixed:
http://git.sv.gnu.org/cgit/guile.git/commit/?h=stable-2.0&id=61237fa4b96d020e96388cca4fd065ddf43bca60
Thanks!
Ludo’.
next prev parent reply other threads:[~2011-09-13 17:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-10 17:35 peval error Andy Wingo
2011-09-10 23:05 ` Ludovic Courtès
2011-09-13 17:04 ` Ludovic Courtès [this message]
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=87d3f4s7a3.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=bug-guile@gnu.org \
--cc=wingo@pobox.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).