[Top][All Lists]

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

Re: `pp-eval-expression' behaves strangely under lexical binding

From: Stefan Monnier
Subject: Re: `pp-eval-expression' behaves strangely under lexical binding
Date: Sun, 17 Apr 2016 12:15:25 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> 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").


reply via email to

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