[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Weird let behavior (and where to ask for support)
From: |
Stefan Monnier |
Subject: |
Re: Weird let behavior (and where to ask for support) |
Date: |
Sat, 22 Jan 2022 23:27:30 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
> You are modifying the constant '(0). Modifying constants has an unspecified
> effect, one manifestation of which you are observing.
> Change '(0) to (list 0).
Exactly. IOW never use `nreverse`, `sort`ΒΈ `nconc`, etc... on a list
unless you know for sure all the `conses` in that list are all freshly
made and not shared with anything else.
'(0)
does not return a freshly made list, but instead return the same old
and tired list created when the code was loaded into Emacs.
Stefan