[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ilgl go or return - not inside prog
- To: bug-lisp at MIT-AI
- Subject: ilgl go or return - not inside prog
- From: DEWOLF at WPAFB-AFAL
- Date: Tue, 21 Nov 78 22:06:00 GMT
- Original-date: 21 Nov 1978 (Tuesday) 1706-EST
The following seems strange to me. The interpreter evals
the return-value portion of a DO in a control environment
which is neither inside the DO nor in the enclosing PROG.
Never-never land?
.r com:lisp
LISP 1137
ALLOC? n
*
(defun foo () (prog ()(do ()(t (return t)))))
FOO
(foo)
(GO RETURN) ILGL GO OR RETURN - NOT INSIDE A PROG
;BKPT FAIL-ACT
^Z
I would not be surprised if the compiler got confused, but
I am surprised at the interpreters confusion.
Tim Finin, FININ@MIT-AI