backquote of constants should be constant
Bug #1026439 reported by
James Y Knight
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
That is,
(defconstant +foo+ 1)
(defun foo () `(,+foo+))
should return a constant list, not cons up a new one every time.
Here's a patch. Seems to work.
I wonder if any of the complication in backq.lisp can be removed if it can assume the compiler does this.
Changed in sbcl: | |
status: | New → Triaged |
assignee: | nobody → Paul Khuong (pvk) |
Changed in sbcl: | |
status: | Triaged → In Progress |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
"Should" as in "the standard prescribes it" or in "it would be nice"?