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

Pages: 1-

Clever macros

Name: Anonymous 2007-08-03 6:53 ID:iG2tUgp9

/comp/ is to /prog/ as IT is to Computer Science

Name: sage 2007-08-03 8:45 ID:Heaven

So you mean it's totally awesome? :D

Name: Anonymous 2007-08-03 20:01 ID:Heaven

(defmacro for (var from init to final do &rest body)
  (let ((tempvar (make-symbol "max")))
    `(let ((,var ,init)
           (,tempvar ,final))
       (while (<= ,var ,tempvar)
         ,@body
         (inc ,var)))))

Name: Anonymous 2013-09-08 21:56

poop is gloop as gloop is poop

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