diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-02-16 15:43:20 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-02-16 15:43:20 -0800 |
commit | 65ea825e92af183f5aff9aeb7c6a7880005a7558 (patch) | |
tree | e57586f32b0ae1746324f9b91fc6b165f3c67464 | |
parent | 83778347170b3168bbfd5a87bad1eb12700f5cd0 (diff) | |
download | txr-65ea825e92af183f5aff9aeb7c6a7880005a7558.tar.gz txr-65ea825e92af183f5aff9aeb7c6a7880005a7558.tar.bz2 txr-65ea825e92af183f5aff9aeb7c6a7880005a7558.zip |
* eval.c (bind_macro_params): Bugfix: enforce mismatch on
superfluous material.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2014-02-16 Kaz Kylheku <kaz@kylheku.com> + * eval.c (bind_macro_params): Bugfix: enforce mismatch on + superfluous material. + +2014-02-16 Kaz Kylheku <kaz@kylheku.com> + In the spirit of the previous hack, here is another hack to alleviate a long-standing pain: when an exception happens in TXR's library somewhere, the program dies without leaving @@ -654,6 +654,11 @@ noarg: env_vbind(new_env, params, form); } + if (form) + eval_error(ctx_form, + lit("~s: extra form part ~s not matched by parameter list"), + car(ctx_form), form, nao); + return new_env; nbind: |