[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.
(defun foo () (prog ()(do ()(t (return t)))))
(GO RETURN) ILGL GO OR RETURN - NOT INSIDE A PROG
I would not be surprised if the compiler got confused, but
I am surprised at the interpreters confusion.
Tim Finin, FININ@MIT-AI