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: Elena
Subject: Re: Lexical binding and macros.
Date: Wed, 15 Dec 2010 01:15:00 -0800 (PST)
User-agent: G2/1.0

On Dec 15, 4:24 am, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> >> ehm ... isn't "lexical-let" from the common lisp extension supposed to
> >> support closures?
> > They're not really closures.
>
> Actually, they are closures.  Admittedly, they're not as efficient as
> one might like, but other than that, they work very well, thank you.
>
>         Stefan

Do they still leak memory?  From http://c2.com/cgi/wiki?EmacsLisp :

"Note that variables bound with lexical-let are never released, even
if they are never used. Try

 (loop for i from 1 to 100000 collect (lexical-let ((x i)) '()))

and watch it eat memory. So making infinity (ZeroOneInfinity) lexical
variables is out of the question except for very small values of
infinity."


reply via email to

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