[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Optimizer bug
From: |
Felix |
Subject: |
Re: [Chicken-users] Optimizer bug |
Date: |
Sun, 05 Sep 2010 15:20:34 +0200 (CEST) |
From: Sven Hartrumpf <address@hidden>
Subject: Re: [Chicken-users] Optimizer bug
Date: Sun, 05 Sep 2010 10:02:46 +0200 (CEST)
> Sat, 04 Sep 2010 20:30:07 +0200 (CEST), hartrumpf wrote:
>> Sat, 04 Sep 2010 12:19:48 +0200 (CEST), felix wrote:
>>> Are these redefinitions genuine or are the warnings bogus?
>>
>> The warnings are ok because I define the three functions myself.
>> Can this be a problem here?
This can always be a problem, since the compiler is treating these
as builtin ("standard-bindings") and will replace their use with
his own variants.
>>>> Error: (=) bad argument type - not a number: #f
>>>>
>>>> Call history:
>>>>
>>>> <syntax> (string-append (quote "/") (quote #f))
>>>> <syntax> (quote "/")
>>>> <syntax> (##core#quote "/")
>>>> <syntax> (quote #f)
>>>> <syntax> (##core#quote #f)
>>>> <eval> (string-append (quote "/") (quote #f))
>>>> <syntax> (string->number (quote #f))
>>>> <syntax> (quote #f)
>>>> <syntax> (##core#quote #f)
>>>> <eval> (string->number (quote #f)) <--
>>>
>>> This is during constant folding.
>
> In the compiler output lines "folding constant expression:",
> the above string-append expression does not occur.
>
Can you send me the output of "-debug hoplite"?
Do you define a global constant that holds "/" or #\/? How
is it named?
cheers,
felix