[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `pp-eval-expression' behaves strangely under lexical binding
From: |
Andy Moreton |
Subject: |
Re: `pp-eval-expression' behaves strangely under lexical binding |
Date: |
Mon, 18 Apr 2016 16:07:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (windows-nt) |
On Sun 17 Apr 2016, Stefan Monnier wrote:
>> But isn't my question still valid for `symbol-value'?
>
> No, whether it's implemented in C or in Lisp is irrelevant. As soon as
> you put a symbol into a `quote`, it can't be a reference to a lexical
> variable any more because the compiler will treat it as data and data
> cannot refer to lexical variables, only to other data.
>
> Dynamically scoped variables are data, on the other hand (they're just
> a particular field of a symbol object, which is a kind of "struct").
Hi Stefan,
This short description is very helpful. Could you add some similar wording
to the elisp manual to help clarify usage of lexical binding ?
Thanks,
AndyM