diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-01-23 22:38:42 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-01-23 22:38:42 -0800 |
commit | 519c0c3622417251d6cdff828547a6bb74e6b4b9 (patch) | |
tree | 9bde5e59ce92652ce45615f74cf87e0d4f7eac87 | |
parent | 2177a9682d17b059987a5684ce36bfee8a8b07e1 (diff) | |
download | txr-519c0c3622417251d6cdff828547a6bb74e6b4b9.tar.gz txr-519c0c3622417251d6cdff828547a6bb74e6b4b9.tar.bz2 txr-519c0c3622417251d6cdff828547a6bb74e6b4b9.zip |
diagnose (:whole . blah) as dangling :whole.
* eval.c (bind_macro_params): Test that the rest of the
param list after the keyword is consp, not just non-nil.
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1104,7 +1104,7 @@ static val bind_macro_params(val env, val menv, val params, val form, val bform = if3(param == whole_k, whole, if3(param == form_k, ctx_form, menv)); - if (!next) + if (!consp(next)) eval_error(ctx_form, lit("~s: dangling ~s in param list"), car(ctx_form), param, nao); nparam = car(next); |