[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : PATCH: Explicitly show how let works on global-variable
From: |
Drew Adams |
Subject: |
RE: [External] : PATCH: Explicitly show how let works on global-variables |
Date: |
Tue, 4 Oct 2022 15:00:54 +0000 |
This isn't quite correct:
When you use a system-wide variable in
@code{let}, its value is modified in its
scope and then restored.
1. I'm guessing that by "system-wide" (which is not
defined) you mean a "special", i.e., "dynamic" var.
2. Dynamic binding has no notion of scope, actually.
It's instead about duration: the binding has dynamic
_extent_: it remains in effect until the `let' is
finished.
See CLTL2, section "Scope and Extent":
https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node43.html
("The term 'dynamic scope' is a misnomer. Nevertheless
it is both traditional and useful.")
- Re: PATCH: Explicitly show how let works on global-variables, (continued)
- Re: PATCH: Explicitly show how let works on global-variables, Stefan Monnier, 2022/10/04
- Re: PATCH: Explicitly show how let works on global-variables, Tim Cross, 2022/10/04
- Re: PATCH: Explicitly show how let works on global-variables, Pedro Andres Aranda Gutierrez, 2022/10/05
- Re: PATCH: Explicitly show how let works on global-variables, Pedro Andres Aranda Gutierrez, 2022/10/06
- Re: PATCH: Explicitly show how let works on global-variables, Emanuel Berg, 2022/10/06
Re: PATCH: Explicitly show how let works on global-variables, Richard Stallman, 2022/10/04
Re: PATCH: Explicitly show how let works on global-variables, tomas, 2022/10/04
RE: [External] : PATCH: Explicitly show how let works on global-variables,
Drew Adams <=