Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Good day, fellow lispers

Name: Anonymous 2011-01-29 8:57

In following code, does "return-from all" frees mapcar's stack frame or would lead to stack overflow?

(defun all (fun xs)
  (mapcar (lambda (x) (unless (funcall fun x)
                        (return-from all nil)))
          xs)
  t)

Name: >>19 2011-01-29 19:14

As for TAGBODY/GO, I've used it as part of generated code (macros), and to implement some state machines.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List