cs, fsharp, java, vb: fix macro result evaluation.
[jackhill/mal.git] / cs / step9_try.cs
index 0893724..ea72427 100644 (file)
@@ -108,7 +108,9 @@ namespace Mal {
 
             // apply list
             MalVal expanded = macroexpand(orig_ast, env);
-            if (!expanded.list_Q()) { return expanded; } 
+            if (!expanded.list_Q()) {
+                return eval_ast(expanded, env);
+            } 
             MalList ast = (MalList) expanded;
 
             if (ast.size() == 0) { return ast; }