[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."
- Lexical binding and macros., Alin Soare, 2010/12/10
- Re: Lexical binding and macros., Barry Margolin, 2010/12/12
- Re: Lexical binding and macros., LanX, 2010/12/13
- Re: Lexical binding and macros., Pascal J. Bourguignon, 2010/12/13
- Re: Lexical binding and macros., Stefan Monnier, 2010/12/15
- Re: Lexical binding and macros.,
Elena <=
- Re: Lexical binding and macros., Pascal J. Bourguignon, 2010/12/15
- Re: Lexical binding and macros., Stefan Monnier, 2010/12/15
- Re: Lexical binding and macros., David Kastrup, 2010/12/15
- Re: Lexical binding and macros., Pascal J. Bourguignon, 2010/12/15
- Re: Lexical binding and macros., Elena, 2010/12/15
- Re: Lexical binding and macros., Stefan Monnier, 2010/12/16