summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-01-22 01:03:54 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-01-22 01:03:54 -0800
commit8ced687d65438141be8a1305fa4058a76fa3cc59 (patch)
treefc806ca24868f5ce0255668e6440f22ab38d7fa9 /ChangeLog
parent97865d48b22fd96e75ca216e2dd67850b1c84b2a (diff)
downloadtxr-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--ChangeLog15
1 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 671e8ddd..8b134c00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.