From: Daniel Kraft <d@domob.eu>
To: help-gnu-emacs@gnu.org
Cc: help-gnu-emacs@gnu.org
Subject: Re: lexical-let detail semantics
Date: Mon, 27 Jul 2009 14:09:21 +0200 [thread overview]
Message-ID: <4A6D98F1.6070107@domob.eu> (raw)
In-Reply-To: <7ca3351f-a372-4756-8777-bf87c003d1c2@e11g2000yqo.googlegroups.com>
A.Politz wrote:
> On Jul 27, 11:50 am, Daniel Kraft <d...@domob.eu> wrote:
> [...]
>> I'm happy that lexical-let works well to build closures (and in fact it
>> seems that this is the main intention for lexical-let at all); however
>> this code does not work as expected:
>>
>> (setq a 1)
>> (lexical-let ((a 2))
>> ((lambda () (print a))))
>> => 1
>>
>
> I don't know, but this prints `2' in my emacs (GNU Emacs 22.3.1).
I'm using 21.3.1, and there it is 1; but I checked with a development
build, and yes, then I get 2. So it seems that was really a bug that
got fixed, glad to know this!
Thanks for pointing this out!
Daniel
next prev parent reply other threads:[~2009-07-27 12:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3248.1248688520.2239.help-gnu-emacs@gnu.org>
2009-07-27 10:50 ` lexical-let detail semantics A.Politz
2009-07-27 12:09 ` Daniel Kraft [this message]
2009-07-27 13:16 ` Pascal J. Bourguignon
2009-07-27 14:44 ` Daniel Kraft
[not found] ` <mailman.3293.1248739037.2239.help-gnu-emacs@gnu.org>
2009-07-28 0:48 ` Pascal J. Bourguignon
2009-07-27 9:50 Daniel Kraft
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=4A6D98F1.6070107@domob.eu \
--to=d@domob.eu \
--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.