GNU bug report logs -
#13741
guile-2.0: optimize, and eq-ness of literals (test-suite)
Previous Next
Reported by: Daniel Hartwig <mandyke <at> gmail.com>
Date: Mon, 18 Feb 2013 03:29:01 UTC
Severity: normal
Found in version 2.0.7
Done: Andy Wingo <wingo <at> pobox.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Daniel Hartwig <mandyke <at> gmail.com> writes:
> On 18 February 2013 17:16, Ludovic Courtès <ludo <at> gnu.org> wrote:
>> Quoth R5RS:
>>
>> `Eq?''s behavior on numbers and characters is
>> implementation-dependent, but it will always return either true or
>> false, and will return true only when `eqv?' would also return
>> true. `Eq?' may also behave differently from `eqv?' on empty
>> vectors and empty strings.
>>
>> What we may get wrong is that it looks as if it doesn’t always return
>> either true or false, because the behavior depends on whether one of the
>> operands is a literal.
>
> I took that to mean only that eq? always returns a boolean, rather
> than requiring it to return the same boolean given the same numeric
> arguments. It would be fine to simplify some rationals and not
> others, as this action does not affect the outcome of eqv?.
Yes, this is my understanding as well.
Mark
This bug report was last modified 12 years and 86 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.