[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Re: Weird capture problem
From: |
felix |
Subject: |
[Chicken-users] Re: Weird capture problem |
Date: |
Wed, 24 Jun 2009 17:45:35 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Abdulaziz Ghuloum <aghuloum <at> gmail.com> writes:
>
> Is this expected behavior or a bug?
>
> Aziz,,,
>
> CHICKEN
> (c)2008-2009 The Chicken Team
> (c)2000-2007 Felix L. Winkelmann
> Version 4.0.0 - SVN rev. 13887
> macosx-unix-gnu-x86 [ manyargs dload ptables applyhook ]
> compiled 2009-06-23 on Vesuvius (Darwin)
>
> #;1> (let ((begin (lambda (x y) (printf "x=~s y=~s\n" x y)))) 1 2)
> x=1 y=2
> #;2>
>
Certainly a bug. The code that canonicalizes a `let'/`lambda' body
uses a lookup of 'begin in the wrong environment. As usual, I will
use a dirty hack to work around this problem and post the
results here.
Thanks for reporting this.
cheers,
felix