all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Iñigo Serna" <inigoserna@gmail.com>
To: help-gnu-emacs@gnu.org
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	[thread overview]
Message-ID: <87d1y5viln.fsf@inigo.katxi.org> (raw)
In-Reply-To: <87y4guxu6o.fsf@kuiper.lan.informatimago.com>

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	other threads:[~2015-08-29 22:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.118.1440827512.19560.help-gnu-emacs@gnu.org>
2015-08-29  7:51 ` How to use a variable from outer scope in the success function of a request call? Pascal J. Bourguignon
2015-08-29  8:34   ` Iñigo Serna
2015-08-29  9:11     ` Iñigo Serna
     [not found]   ` <mailman.126.1440837274.19560.help-gnu-emacs@gnu.org>
2015-08-29 10:31     ` Pascal J. Bourguignon
2015-08-29 22:24       ` Iñigo Serna [this message]
2015-08-29 22:01   ` Stefan Monnier
2015-08-29  0:36 Iñigo Serna

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d1y5viln.fsf@inigo.katxi.org \
    --to=inigoserna@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.