* Static Scoping versus Dynamic Scoping
@ 2007-05-13 8:12 Davin Pearson
2007-05-13 8:31 ` David Kastrup
2007-06-09 21:58 ` Stefan Monnier
0 siblings, 2 replies; 5+ messages in thread
From: Davin Pearson @ 2007-05-13 8:12 UTC (permalink / raw)
To: help-gnu-emacs
I read somewhere that in the future dynamic scoping of variables
in
Emacs Lisp will be replaced with static
scoping.
I don't want this to happen because I often need to make use of
the
following
idiom:
(let ((case-fold-search
t))
(foo))
Inside the foo function case-fold-search's value is set to t,
whatever
the global value for case-fold-
search.
Could someone please reassure me that this precious feature will
not
be removed?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Static Scoping versus Dynamic Scoping
2007-05-13 8:12 Static Scoping versus Dynamic Scoping Davin Pearson
@ 2007-05-13 8:31 ` David Kastrup
2007-06-09 21:58 ` Stefan Monnier
1 sibling, 0 replies; 5+ messages in thread
From: David Kastrup @ 2007-05-13 8:31 UTC (permalink / raw)
To: help-gnu-emacs
Davin Pearson <davin.pearson@gmail.com> writes:
> I read somewhere that in the future dynamic scoping of variables in
> Emacs Lisp will be replaced with static scoping.
>
> I don't want this to happen because I often need to make use of the
> following idiom:
>
> (let ((case-fold-search
> t))
>
> (foo))
>
> Inside the foo function case-fold-search's value is set to t,
> whatever the global value for case-fold- search.
>
> Could someone please reassure me that this precious feature will not
> be removed?
Variables defined with defvar will not be affected by the change.
There is no work in progress that would make this change likely in the
next 7 years, anyway.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Static Scoping versus Dynamic Scoping
2007-05-13 8:12 Static Scoping versus Dynamic Scoping Davin Pearson
2007-05-13 8:31 ` David Kastrup
@ 2007-06-09 21:58 ` Stefan Monnier
2007-06-10 4:44 ` Tom Tromey
[not found] ` <mailman.1845.1181451756.32220.help-gnu-emacs@gnu.org>
1 sibling, 2 replies; 5+ messages in thread
From: Stefan Monnier @ 2007-06-09 21:58 UTC (permalink / raw)
To: help-gnu-emacs
> I read somewhere that in the future dynamic scoping of variables in Emacs
> Lisp will be replaced with static scoping.
You're confused. There is some work going on which attempts to *add*
static scoping (more seriously than provided by CL's lexical-let macro).
But there's no intention to drop dynamic scoping: it would break about 99%
of existing Lisp code.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Static Scoping versus Dynamic Scoping
2007-06-09 21:58 ` Stefan Monnier
@ 2007-06-10 4:44 ` Tom Tromey
[not found] ` <mailman.1845.1181451756.32220.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Tom Tromey @ 2007-06-10 4:44 UTC (permalink / raw)
To: help-gnu-emacs
>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I read somewhere that in the future dynamic scoping of variables in Emacs
>> Lisp will be replaced with static scoping.
Stefan> You're confused. There is some work going on which attempts
Stefan> to *add* static scoping (more seriously than provided by CL's
Stefan> lexical-let macro). But there's no intention to drop dynamic
Stefan> scoping: it would break about 99% of existing Lisp code.
I'm curious about this. I know about the branch for this but I
haven't seen any discussion about merging it to the main line...
Tom
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Static Scoping versus Dynamic Scoping
[not found] ` <mailman.1845.1181451756.32220.help-gnu-emacs@gnu.org>
@ 2007-06-12 14:19 ` Stefan Monnier
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2007-06-12 14:19 UTC (permalink / raw)
To: help-gnu-emacs
> I'm curious about this. I know about the branch for this but I
> haven't seen any discussion about merging it to the main line...
There was a long discussion about it before the branch was created,
i.e. many years ago. IIRC Richard was not highly interested but might not
oppose it as long as it didn't make the current code more complex and
ensured 100% backward compatibility.
Since then Miles has done a good bit of the work, but I don't know exactly
what's missing. I know the trickier part is writing the byte-compiler.
IIRC the interpreter has been working reliably for a while now.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-06-12 14:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-13 8:12 Static Scoping versus Dynamic Scoping Davin Pearson
2007-05-13 8:31 ` David Kastrup
2007-06-09 21:58 ` Stefan Monnier
2007-06-10 4:44 ` Tom Tromey
[not found] ` <mailman.1845.1181451756.32220.help-gnu-emacs@gnu.org>
2007-06-12 14:19 ` Stefan Monnier
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.