Make that test macro more lispy

This commit is contained in:
Nicolas Dandrimont 2013-05-11 20:35:56 +02:00
parent 5a74fff7e6
commit bd478590fa

View File

@ -2,7 +2,7 @@
"NATIVE: test stararged native macros"
(defmacro rev [&rest body]
"Execute the `body` statements in reverse"
(+ (quote (do)) (list (reversed body))))
(quasiquote (do (unquote-splice (list (reversed body)))))))
(setv x [])
(rev (.append x 1) (.append x 2) (.append x 3))