On Sunday, April 22, 2012, Juanma Barranquero <lekktu@gmail.com> wrote:
> On Sun, Apr 22, 2012 at 08:06, David Combs <dkcombs@panix.com> wrote:
>
>> Too late at night for me to remember the name of the "scheme", but
>> Perl added it via its (sic) "local" variables. AH -- dynamic binding,
>> that's what it's called. Which Elisp doesn't have, being derived from
>> MacLisp thinking.
>>
>> That was a long time ago. Is what I remember actually a correct memory?
>
> I think you've mixed a bit lexical and dynamic scoping (Perl "local"
> is indeed dynamic scoping, but Scheme's novelty was lexical scoping,
> which Common Lisp copied).
And to answer the question, elisp supports dynamic scoping, and support for lexical scoping will be added in Emacs 24.1.
--
-PJ
Gehm's Corollary to Clark's Law: Any technology distinguishable from
magic is insufficiently advanced.