[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
COMPLR can't do DO
- To: bug-lisp at MIT-MC
- Subject: COMPLR can't do DO
- From: Rod Brooks <ROD at SU-AI>
- Date: Fri, 16 Jan 81 11:19:00 GMT
- Original-date: 16 Jan 1981 0319-PST
I have vague memories of complaining about something like this years ago
but maybe this is different. In any case I wish it didn't happen this way.
(defun baz (n)
(do ((old 1 new)
(new 2 (1+ new))
(l () (cons (list old new) l))
(i 0 (1+ i)))
((= i n) l)))
interpreted:
(baz 4) ==> ((4 5) (3 4) (2 3) (1 2))
compiled (both 905 and 924):
(baz 4) ==> ((5 5) (4 4) (2 3) (1 2))