Re: [Sbcl-bugs] array equality testing
Stas Boukarev <[email protected]> Wed, 11 Feb 2026 18:58:15 +0300
| Newsgroups | gmane.lisp.steel-bank.devel |
|---|---|
| Message-ID | <CAF63=12dao=UaP7sRrycwhDi0M=cqgyLY3kj=b81QThB9=eRcQ@mail.gmail.com> |
You are not allowed to modify literal constants. On Wed, Feb 11, 2026 at 6:55 PM Richard Holcombe <[email protected]> wrote: > > I have the following piece of code: > (let ((vect #(0)) > (newv #(3))) > (setf (aref vect 0) 3) > (list vect newv (equalp vect news))) > > if I start sbcl 2.4.11 and run this code, I get > (#(3) #(3) NIL) > > If I then execute > (declaim (optimize (debug 3))) > and re-run it, I get > (#(3) #(3) T) > > If I do the same with sbcl 2.6.0, I get (#(3) #(3) NIL) regardless of the debug setting. > I thought that equalp of two arrays of equal numbers should return T. > > Richard > _______________________________________________ > Sbcl-bugs mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sbcl-bugs _______________________________________________ Sbcl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sbcl-devel