diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-05-02 07:16:19 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-05-02 07:16:19 -0700 |
commit | f35bc2b622988028e0da6363adf25ed4fbffceea (patch) | |
tree | 4b7ad309b5e11974f3e84870f130d38ca43cb20b | |
parent | 8f4e71979d0572bd3f438922ec40ee4450b4684d (diff) | |
download | txr-f35bc2b622988028e0da6363adf25ed4fbffceea.tar.gz txr-f35bc2b622988028e0da6363adf25ed4fbffceea.tar.bz2 txr-f35bc2b622988028e0da6363adf25ed4fbffceea.zip |
interpreter: don't bother with dot position.
* eval.c (do_eval_args): Since function call expressions all
undergo the dot-to-apply transform, there is no need
look for a form in the dot position.
-rw-r--r-- | eval.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1401,13 +1401,8 @@ static void do_eval_args(val form, val env, val ctx, val (*lookup)(val env, val sym), struct args *args) { - for (; consp(form); form = cdr(form)) + for (; form; form = cdr(form)) args_add(args, do_eval(car(form), env, ctx, lookup)); - - if (form) { - val dotpos = do_eval(form, env, ctx, lookup); - args_add_list(args, if3(listp(dotpos), dotpos, tolist(dotpos))); - } } val set_dyn_env(val de) |