[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lexical and dynamic binding
From: |
Ikumi Keita |
Subject: |
Re: lexical and dynamic binding |
Date: |
Thu, 28 Oct 2021 15:35:28 +0900 |
>>>>> Ikumi Keita <ikumi@ikumi.que.jp> writes:
> My understanding of the last sentence is as follows:
More straightforwad example is:
----------------------------------------------------------------------
(setq foo 1) ; dynamic global binding without defvar.
(let ((foo foo)) ; creates lexical binding on foo.
(setq foo (1+ foo)) ; sets lexically bound value.
(symbol-value 'foo)) ; accesses dynamically bound value.
; => 1
----------------------------------------------------------------------
This is the meaning of
,----
| Note that if ‘lexical-binding’ is in effect, this returns the
| global value outside of any lexical scope.
`----
, I think.
Regards,
Ikumi Keita
- Extending TeX-read-key-val, Arash Esbati, 2021/10/22
- Re: Extending TeX-read-key-val, Ikumi Keita, 2021/10/23
- Re: Extending TeX-read-key-val, Arash Esbati, 2021/10/24
- Re: Extending TeX-read-key-val, Tassilo Horn, 2021/10/24
- Re: Extending TeX-read-key-val, Arash Esbati, 2021/10/27
- Re: Extending TeX-read-key-val, Tassilo Horn, 2021/10/28
- lexical and dynamic binding, Ikumi Keita, 2021/10/28
- Re: lexical and dynamic binding, Tassilo Horn, 2021/10/28
- Re: lexical and dynamic binding,
Ikumi Keita <=
- Re: lexical and dynamic binding, Arash Esbati, 2021/10/28
- Re: Extending TeX-read-key-val, Ikumi Keita, 2021/10/25