[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: glr at MIT-AI
- From: Jon L White <JONL at MIT-MC>
- Date: Wed, 9 Dec 81 22:19:00 GMT
- Cc: BUG-LISP at MIT-MC
- Original-date: 9 December 1981 17:19-EST
Date: 9 December 1981 15:52-EST
From: Jerry Roylance <GLR at MIT-AI>
COMPLR does not compile the do loop correctly
(defun bug ()
(do ((i 0 j)
(j 1 (1+ j)))
((> j 10))
(print (list i j))))
The bug is caused by the clause "(i 0 j)", which involves parallel
assignments -- you can completely get around this problem for now
by declareing 'j' to be fixnum (you might as well declare 'i' too).