[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: peval error
From: |
Ludovic Courtès |
Subject: |
Re: peval error |
Date: |
Tue, 13 Sep 2011 19:04:36 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
Hi,
Andy Wingo <address@hidden> 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’.
- peval error, Andy Wingo, 2011/09/10
- Re: peval error, Ludovic Courtès, 2011/09/10
- Re: peval error,
Ludovic Courtès <=
- Re: peval error, Andy Wingo, 2011/09/15
- Re: peval error, Ludovic Courtès, 2011/09/15
- Re: peval error, Ludovic Courtès, 2011/09/16
- Re: peval error, Andy Wingo, 2011/09/16
- Re: peval error, Ludovic Courtès, 2011/09/17
- Re: peval error, Ludovic Courtès, 2011/09/17
- Re: peval error, Andy Wingo, 2011/09/17
- bug#9542: peval error, Ludovic Courtès, 2011/09/18
- bug#9542: peval error, Ludovic Courtès, 2011/09/18