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

[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

Attachment: signature.asc
Description: Digital signature


reply via email to

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