guile-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Fast R6RS div/mod; improved extensibility of numerics


From: Andy Wingo
Subject: Re: [PATCH] Fast R6RS div/mod; improved extensibility of numerics
Date: Mon, 31 Jan 2011 21:46:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

On Mon 31 Jan 2011 21:30, Mark H Weaver <address@hidden> writes:

> Andy Wingo <address@hidden> writes:
>> I did apply it, but it made the test cases start to fail, because
>> numbers.test is loaded after ecmascript.test, and:
>>
>>     scheme@(guile-user)> ,L ecmascript
>>     Happy hacking with ECMAScript!  To switch back, type `,L scheme'.
>>     ecmascript@(guile-user)> true * true;
>>     $1 = 1
>>     ecmascript@(guile-user)> ,L scheme
>>     Happy hacking with Scheme!  To switch back, type `,L ecmascript'.
>>     scheme@(guile-user)> (* #t #t)
>>     $2 = 1
>
> How could changes in `expt' possibly affect (true * true) or (* #t #t)?
> I don't understand what this has to do with my patch.

Sorry, I wasn't clear.

Your patch replaced a test that expected `(expt #t 0)' to fail with one
that expected `(expt #t 2)' to fail.  I assumed it was because it was
treating `(expt #t 2)' as `(* #t #t)', but I could be mistaken there.

You can see this error if you run the full ./check-guile, not just
./check-guile numbers.test.

Cheers,

Andy
-- 
http://wingolog.org/



reply via email to

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