[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Do-loop enigma with two variables
From: |
Pierre Lairez |
Subject: |
Re: Do-loop enigma with two variables |
Date: |
Sat, 16 Jul 2016 13:05:49 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 |
Thanks all for the diagnosis and the fix!
Pierre
On 16/07/2016 12:10, Andy Wingo wrote:
> On Fri 15 Jul 2016 16:26, Pierre Lairez <address@hidden> writes:
>
>> When running the following loop:
>> (do ((i 1 (+ 1 i))
>> (j 0 i))
>> ((> i 4) (newline))
>> (display (list i j)))
>>
>> I expect without hesitation to read
>> (1 0)(2 1)(3 2)(4 3)
>>
>> To my surprise, I obtain
>> (1 0)(2 2)(3 3)(4 4)
> Fixed. Turns out I had already found and fixed this in master
> (4632f3d9988f9a234298b7cc860b2374e2bcc712), but for some reason didn't
> back-port the fix. Done now.
>
> Thanks for the report,
>
> Andy
signature.asc
Description: OpenPGP digital signature
- Do-loop enigma with two variables, Pierre Lairez, 2016/07/15
- Re: Do-loop enigma with two variables, Nala Ginrut, 2016/07/15
- Re: Do-loop enigma with two variables, Mike Gran, 2016/07/15
- Re: Do-loop enigma with two variables, Taylan Ulrich Bayırlı/Kammer, 2016/07/16
- Re: Do-loop enigma with two variables, Andy Wingo, 2016/07/16
- Re: Do-loop enigma with two variables, Andy Wingo, 2016/07/16
- Re: Do-loop enigma with two variables,
Pierre Lairez <=