[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

COMPLR can't do DO



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))