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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use a variable from outer scope in the success function of a


From: Iñigo Serna
Subject: Re: How to use a variable from outer scope in the success function of a request call?
Date: Sun, 30 Aug 2015 00:24:20 +0200

Hi again

Pascal J. Bourguignon writes:
> [...]
>
> However, without lexical-binding, variables are dynamic.  
>
>     lexical = space = where
>     dynamic = time  = when
>
> Therefore WHEN this anonymous function is called, it may happen that no
> variable named c exist anymore. Or worse, than another variable named c
> THEN exist that is not the one that existed when your function fn4 was
> executing!
>
> In the context of Common Lisp, here is an explaination of
> lexical/dynamic and global/local
> https://groups.google.com/forum/#!msg/comp.lang.lisp/4VyopdWcFI4/1sDQU-3H8VgJ
>
> Google also about the FUNARG problem.

I understand the differences now.

Thanks a lot Pascal for your kind explanations.

Best regards,
Iñigo Serna



reply via email to

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