[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dolist
- To: clisp-list@ma2s2.mathematik.uni-karlsruhe.de
- Subject: dolist
- From: pg@das.harvard.edu
- Date: Sun, 28 Apr 96 11:47:38 EDT
I agree in that this code
(let ((x 1))
(let ((f #'(lambda () x)))
(setq x 2)
(funcall f)))
should return 2. The question is, should dolist be understood as
creating one variable (as it would if it expanded into a tagbody
with a setq) or a different variable on each iteration (as it would
if it expanded into a recursive function). I believe that the
standard is vague here, and was suggesting that if we have to choose
one interpretation, the latter would be the better one, as in Scheme.
--pg
- Follow-Ups:
- Re: dolist
- From: Steve Haflich <smh@Franz.COM>
- dolist
- From: Marcus Daniels <marcus@sysc.pdx.edu>