diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-01-22 01:03:54 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-01-22 01:03:54 -0800 |
commit | 8ced687d65438141be8a1305fa4058a76fa3cc59 (patch) | |
tree | fc806ca24868f5ce0255668e6440f22ab38d7fa9 /ChangeLog | |
parent | 97865d48b22fd96e75ca216e2dd67850b1c84b2a (diff) | |
download | txr-8ced687d65438141be8a1305fa4058a76fa3cc59.tar.gz txr-8ced687d65438141be8a1305fa4058a76fa3cc59.tar.bz2 txr-8ced687d65438141be8a1305fa4058a76fa3cc59.zip |
Support function versions of if, and, or so that partial
evaluation like (op or @1 42) or (op if (eq @1 foo) bar xyzzy)
is possible.
* eval.c (do_eval): Change precedence between operator and
function lookup to favor operators. This is important since
there are several operators now which are also functions.
(if_fun, or_fun, and_fun): New static functions.
(eval_init): New functions registered as intrinsics.
* txr.1: Documented that if, and, or exist as both functions
and operators.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,5 +1,20 @@ 2014-01-22 Kaz Kylheku <kaz@kylheku.com> + Support function versions of if, and, or so that partial + evaluation like (op or @1 42) or (op if (eq @1 foo) bar xyzzy) + is possible. + + * eval.c (do_eval): Change precedence between operator and + function lookup to favor operators. This is important since + there are several operators now which are also functions. + (if_fun, or_fun, and_fun): New static functions. + (eval_init): New functions registered as intrinsics. + + * txr.1: Documented that if, and, or exist as both functions + and operators. + +2014-01-22 Kaz Kylheku <kaz@kylheku.com> + * eval.c (eval_instrinsic): Changed to external linkage. * eval.h (eval_intrinsic): Declared. |