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

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

Re: Lexical binding and macros.


From: Pascal J. Bourguignon
Subject: Re: Lexical binding and macros.
Date: Sun, 12 Dec 2010 18:23:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

LanX <lanx.perl@googlemail.com> writes:

> On 12 Dez., 05:10, Barry Margolin <bar...@alum.mit.edu> wrote:
>> In article <mailman.40.1292017369.4804.help-gnu-em...@gnu.org>,
>>  Alin Soare <alins...@voila.fr> wrote:
>>
>> > Are the macros and closures equivalent ?
>>
>> No.  Emacs Lisp has macros, it doesn't have closures.  But in dialects
>> of Lisp that have both, they're completely different.
>
>
> ehm ... isn't "lexical-let" from the common lisp extension supposed to
> support closures?

They're not really closures.   Closures are equivalent to objects, so
you can simulate them by creating a kind of object, and this is what
lexical-let does.  But given emacs lisp VM, it cannot do it quite
efficiently.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


reply via email to

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