]> gitweb.factorcode.org Git - factor.git/commitdiff
Macro-expansion requires another call
authorJames Cash <james.nvc@gmail.com>
Thu, 14 Aug 2008 04:55:47 +0000 (00:55 -0400)
committerJames Cash <james.nvc@gmail.com>
Sun, 24 Aug 2008 03:13:34 +0000 (23:13 -0400)
extra/lisp/lisp.factor

index 967c52a1177a5f1b08a6b2f98425bfb8d14d912d..75c3d48d1fea596077ece57e3f6d801bec09700f 100644 (file)
@@ -62,7 +62,7 @@ PRIVATE>
     cdr [ car ] keep [ convert-lambda ] [ car name>> ] bi define-lisp-macro 1quotation ;
 
 : macro-expand ( cons -- quot )
-    uncons [ list>seq >quotation ] [ lookup-macro ] bi* call convert-form ;
+    uncons [ list>seq >quotation ] [ lookup-macro ] bi* call call convert-form ;
     
 : convert-begin ( cons -- quot )    
     cdr [ convert-form ] [ ] lmap-as [ 1 tail* ] [ but-last ] bi