unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* peval error
@ 2011-09-10 17:35 Andy Wingo
  2011-09-10 23:05 ` Ludovic Courtès
  2011-09-13 17:04 ` Ludovic Courtès
  0 siblings, 2 replies; 12+ messages in thread
From: Andy Wingo @ 2011-09-10 17:35 UTC (permalink / raw)
  To: bug-guile; +Cc: ludo

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/



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-09-18 21:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).