diff options
| author | Joel Martin <github@martintribe.org> | 2014-10-06 23:53:51 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-10-06 23:53:51 -0500 |
| commit | 82efc357ba67da1eaf35ca92b6f249a344aae8d5 (patch) | |
| tree | 1cdf298c1c971a3bdecec1e31727ea8f214eedef /go/src/step6_file | |
| parent | aeabd2145ff133cc6991166d8f1023ed33e223c8 (diff) | |
| download | mal-82efc357ba67da1eaf35ca92b6f249a344aae8d5.tar.gz mal-82efc357ba67da1eaf35ca92b6f249a344aae8d5.zip | |
go: add step8_macros
Diffstat (limited to 'go/src/step6_file')
| -rw-r--r-- | go/src/step6_file/step6_file.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/go/src/step6_file/step6_file.go b/go/src/step6_file/step6_file.go index ddf748e..046f24e 100644 --- a/go/src/step6_file/step6_file.go +++ b/go/src/step6_file/step6_file.go @@ -123,7 +123,9 @@ func EVAL(ast MalType, env EnvType) (MalType, error) { ast = a2 } case "fn*": - fn := MalFunc{EVAL, a2, env, a1} + fn := MalFunc{EVAL, a2, env, a1, false, + func(outer EnvType, binds []MalType, exprs []MalType) (EnvType, error) { + return NewEnv(outer, binds, exprs) }} return fn, nil default: el, e := eval_ast(ast, env) |
