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

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

Re: FW: [External] : Re: Lexical vs. dynamic: small examples?


From: Emanuel Berg
Subject: Re: FW: [External] : Re: Lexical vs. dynamic: small examples?
Date: Fri, 27 Aug 2021 01:05:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Drew Adams wrote:

>> Use `let' for local variables that then become
>> lexical/static (because of `lexical-binding').
>
> Except `let' binds dynamically bound (aka "special")
> vars dynamically.  E.g., if you have a (defvar foo)
> declaration then a subsequent (let ((foo ...))...)
> binds `foo' dynamically.
>
>> And nothing unexpected ever happens, because for the
>> global, special/dynamic variables one uses prefixes?
>
> Does one? Maybe. But how do you think a prefix in the name
> changes something wrt the kind of binding?

I don't know, maybe one isn't supposed to use prefixes in
`let'?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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