chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] for-each should signal error if given a non-list?


From: Felix
Subject: Re: [Chicken-users] for-each should signal error if given a non-list?
Date: Mon, 19 Jul 2010 18:05:42 +0200 (CEST)

From: Christian Kellermann <address@hidden>
Subject: Re: [Chicken-users] for-each should signal error if given a non-list?
Date: Sat, 17 Jul 2010 21:20:22 +0200

> * Alejandro Forero Cuervo <address@hidden> [100717 21:15]:
>> Could we make for-each signal an error if given some argument (other
>> than the first) which is not a list?
>> 
>> In Chicken 3.4.0, evaluating (for-each 0 0) correctly signaled an
>> error:
>> 
>>   Error: (for-each) argument is not a proper list: 0
>> 
>> 4.5.0 seems to just silently ignore the typing error.
>> 
> 
> This has been fixed:
> CHICKEN
> (c)2008-2010 The Chicken Team
> (c)2000-2007 Felix L. Winkelmann
> Version 4.5.6
> openbsd-unix-gnu-x86 [ manyargs dload ptables ]
> compiled 2010-07-12 on hermes.my.domain (OpenBSD)
> 
> #;1> (for-each 0 0)
> 
> Error: (for-each) bad argument type - not a list: 0
> 
>         Call history:
> 
>         <syntax>                (for-each 0 0)
>         <eval>          (for-each 0 0)  <--
> 

That's right - the compiler made some unhealthy assumptions
while optimizing. I told it to stop that, so see git "master"
branch.


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]