Le mercredi 21 juin 2023 à 11:06 +0200, Jean Abou Samra a écrit : > Le lundi 19 juin 2023 à 16:20 +0400, Andrew Tropin a écrit : > > + (if (eq? old-value (atomic-box-compare-and-swap! box old-value > > new-value)) > > > Are you sure eq? is a good idea here? (eq? 5 5) is unspecified, for example. > Perhaps eqv? would be more appropriate.
(P.S. And according to the manual, even (let ((a 5)) (eq? a a)) is unspecified.)
signature.asc
Description: This is a digitally signed message part