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

ilgl go or return - not inside prog



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