HCoop
/
jackhill
/
mal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cs, fsharp, java, vb: fix macro result evaluation.
[jackhill/mal.git]
/
cs
/
step9_try.cs
diff --git
a/cs/step9_try.cs
b/cs/step9_try.cs
index
0893724
..
ea72427
100644
(file)
--- a/
cs/step9_try.cs
+++ b/
cs/step9_try.cs
@@
-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; }