ulisp-arm icon indicating copy to clipboard operation
ulisp-arm copied to clipboard

Using return outside a block causes odd behaviour

Open technoblogy opened this issue 2 years ago • 0 comments

Calling return outside loop, dotimes, or dolist causes subsequent loops to fail. For example:

(defun test ()
  (dotimes (x 6) (princ x))
  (return 67))

It works the first time but fails the second:

> (test)
012345
67

> (test)
0
67

Will be fixed next release. Thanks to Brian O'Dell for reporting this.

technoblogy avatar Jan 06 '22 12:01 technoblogy