help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Question about let binding behavior


From: Stefan Monnier
Subject: Re: Question about let binding behavior
Date: Tue, 08 Oct 2024 22:28:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

>    (let ((baz '((quux . 0) (quuz . 0))))
>      (if (> 10 bar)
>      (setcdr (assoc 'quux baz) bar)
>        (setcdr (assoc 'quuz baz) bar))
>      baz))
>
> Then the following evals:
>
> (foo 1)
> => ((quux . 1) (quuz . 0))
>
> (foo 100)
> => ((quux . 1) (quuz . 100))

Does `C-h f quote RET` answer your question?
(`quote` is the full-name of the ' you used in your code).


        Stefan




reply via email to

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