summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-06-26 09:46:34 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-06-26 09:46:34 -0700
commit3e8ffce49faa414d970d43ec7396ebad82a32add (patch)
tree393e8c33e37cc375a784c5b6ddb22fd9fc7fc2f3
parent318adf3824b44af70ef446711ae0d47ad6d63245 (diff)
downloadtxr-3e8ffce49faa414d970d43ec7396ebad82a32add.tar.gz
txr-3e8ffce49faa414d970d43ec7396ebad82a32add.tar.bz2
txr-3e8ffce49faa414d970d43ec7396ebad82a32add.zip
Use Lisp eval for :var inits in collect and gather.
* match.c (vars_to_bindings): Use tleval_144 instead of txeval.
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index edba90fc..af3a0843 100644
--- a/match.c
+++ b/match.c
@@ -397,7 +397,7 @@ static val vars_to_bindings(val spec, val vars, val bindings)
ptail = list_collect(ptail, cons(item, noval_s));
} else if (consp(item) && bindable(first(item))) {
ptail = list_collect(ptail, cons(first(item),
- txeval(spec, second(item), bindings)));
+ tleval_144(spec, second(item), bindings)));
} else {
sem_error(spec, lit("not a variable spec: ~a"), item, nao);
}