[comp.emacs] Is there a GO ?

lewis@rocky.STANFORD.EDU (Bil Lewis) (01/27/88)

No.  The only iterative construct is while:

(setq n 0)
0

(while (< n 5)
       (print n)
       (setq n (1+ n)))
0

1

2

3

4

nil

  There is also CATCH & THROW (which serve rather different purposes):

(defun foo ()
  (print "I am foo")
  (throw 'tag 42)
  (print "Never arrives here"))
foo

(catch 'tag (foo))
"I am foo"

42

-Bil
--