[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Optional Arguments
From: |
tomas |
Subject: |
Re: Optional Arguments |
Date: |
Mon, 7 Dec 2020 16:38:47 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Dec 07, 2020 at 03:24:36PM +0100, pietru@caramail.com wrote:
[...]
> > => "ma: 15 mb: 26"
>
> Hmmm. Variables local to function.
Yes. "Local" meaning here either dynamical extent (called functions
"see" the variables up the call chain, think Unix shells) or
lexical extent (code contexts "see" the variables of enclosing
code contexts (think C or Java or...), depending on whether you
chose lexical binding [1].
[...]
> > ...would you expect it to change the number 15 to whatever the word's
> > beginning position is? You would mess up maths with that :)
>
> Yes, it would mess up.
Gödel's nothing against that :-D
Cheers
[1] Cf. Chapter "Lexical Binding" in the Elisp manual, or here
https://www.gnu.org/software/emacs/manual/html_node/elisp/Lexical-Binding.html
- t
signature.asc
Description: Digital signature
- Optional Arguments, pietru, 2020/12/06
- Re: Optional Arguments, Alexis Roda, 2020/12/07
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, tomas, 2020/12/07
- Re: Optional Arguments, Anders Dalskov, 2020/12/07
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments,
tomas <=
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, Arthur Miller, 2020/12/07
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, Michael Heerdegen, 2020/12/07
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, Arthur Miller, 2020/12/07
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, Alexis Roda, 2020/12/07
- Re: Optional Arguments, pietru, 2020/12/07
- Re: Optional Arguments, tomas, 2020/12/07