| Subject: | Re: Is lexical closure of elisp weeker than in clisp? |
|---|---|
| From: | David Kastrup |
| Date: | Fri, 08 Aug 2008 22:40:28 +0200 |
| Newsgroups: | comp.emacs |
Daneel Yaitskov <rtfm.rtfm.rtfm@xxxxxxxxx> writes:
> The snippet of the lisp code:
>
> (defun create-counter (start)
> #'(lambda () (setq start (+ start 1))))
(eval-when-compile (require 'cl))
(defun create-counter (start)
(lexical-let ((start start))
(lambda () (setq start (1+ start)))))
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Emacs's M-‹key› Notation vs Alt+‹key› Notation, Arndt Roger Schneider |
|---|---|
| Next by Date: | Re: Is lexical closure of elisp weeker than in clisp?, Michael Ekstrand |
| Previous by Thread: | Re: Is lexical closure of elisp weeker than in clisp?, Daneel Yaitskov |
| Next by Thread: | Re: Is lexical closure of elisp weeker than in clisp?, Michael Ekstrand |
| Indexes: | [Date] [Thread] [Top] [All Lists] |