emacs-devel
[Top][All Lists]
Advanced

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

Re: Bug#38708: eq vs eql in byte-compiled code


From: Mattias Engdegård
Subject: Re: Bug#38708: eq vs eql in byte-compiled code
Date: Tue, 31 Dec 2019 17:05:32 +0100

31 dec. 2019 kl. 16.07 skrev Pip Cet <address@hidden>:

> For example, this code will produce t:
> 
> (defun my-eq (a b) (eq a b))
> (defun f () (xor (eq 1.0 1.0) (my-eq 1.0 1.0)))
> (byte-compile 'f)
> (f)

The summary is correct (thank you). Let me just add that strings were already 
deduplicated in the same way, so if 1.0 is replaced with "A" in the code 
fragment above, the result is the same. And eq is no more appropriate for 
flonums than for string literals.




reply via email to

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