[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ambuguity
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
- Subject: Re: ambuguity
- From: kdo@mit.edu (Ken Olum)
- Date: Sun, 28 Apr 1996 11:07:48 -0400
- In-reply-to: <9604280049.AA21323@hershey.harvard.edu> (pg@das.harvard.edu)
I think this is working correctly. For exmaple, you would like
(let ((x 1))
(let ((f #'(lambda () x)))
(setq x 2)
(funcall f)))
to return 2 and not 1. The inside function should have access to
the same slot as the outside one. If you want a different value to be
closed over each time then say
(dolist (x '(1 2))
(push (let ((y x)) #'(lambda () y)) acc))
Ken