|
From: | Emanuel Berg |
Subject: | Re: [External] : Re: Lexical vs. dynamic: small examples? |
Date: | Thu, 26 Aug 2021 02:44:09 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
So the way it should be done is: Put ;;; -*- lexical-binding: t -*- in the beginning of the file. Use `defvar' and `setq' for global variables that then become special/dynamic. Use `let' for local variables that then become lexical/static (because of `lexical-binding'). And nothing unexpected ever happens, because for the global, special/dynamic variables one uses prefixes? -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |