emacs-devel
[Top][All Lists]
Advanced

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

Re: bignum branch


From: Andy Moreton
Subject: Re: bignum branch
Date: Wed, 18 Jul 2018 15:06:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt)

On Wed 18 Jul 2018, Clément Pit-Claudel wrote:

> On 2018-07-18 09:18, Stefan Monnier wrote:
>>>> For example, (eql 0.0e+NaN -0.0e+NaN) now returns t
>>>> because the two NaNs have different signs; formerly it returned nil.
>>> Should this be the other way around ?
>> You mean it's (eql -0.0e+NaN 0.0e+NaN) which should return t?
>> Shouldn't `eql` be commutative?
>
> No, I mean that Paul wrote 't' where he meant 'nil' and 'nil' where he meant 
> 't'.

I agree:

    ELISP> emacs-repository-version
    "c70d22f70b77b053d01c7380122d166ecb728610"
    ELISP> (eql 0.0e+NaN 0.0e+NaN)
    t
    ELISP> (eql -0.0e+NaN -0.0e+NaN)
    t
    ELISP> (eql 0.0e+NaN -0.0e+NaN)
    nil
    ELISP> (eql -0.0e+NaN 0.0e+NaN)
    nil





reply via email to

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