summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-05-14 06:11:59 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-05-14 06:11:59 -0700
commit07c6d46b1cc8300042832c9a01fe57cdfb130db3 (patch)
treea9d8e199efb95507f88d7191520ceda2b62bc8ca /txr.1
parent28304a063238826c7c8d1e9cad771a5d23d8b37a (diff)
downloadtxr-07c6d46b1cc8300042832c9a01fe57cdfb130db3.tar.gz
txr-07c6d46b1cc8300042832c9a01fe57cdfb130db3.tar.bz2
txr-07c6d46b1cc8300042832c9a01fe57cdfb130db3.zip
compiler: better code for global var definitions.
* eval.c (rt_defvarl): More accurate self string. (rt_defv): New static function: like rt_defvarl but ensures that the new variable has a binding cell, and returns that cell instead of the hash cell. (op_defvarl): Take advantage of rt_defv to not have to cons up the binding cell. (eval_init): Register sys:rt-defv intrinsic. * parser.c (read_file_common): Compiled files are now version 7, so we must recognize them. We still load version 6 files because rt:defvarl still exists for them. * share/txr/stdlib/compiler.tl (expand-defvarl): Improve the generated code in two ways. Firstly, use the new sys:rt-defv, which returns the binding cell, so that the value can be stored into it with rplacd without having to cons up anything. Secondly, if there is no value expression, don't emit the code to do the assignment. (%tlo-ver%): Bump compiled file version to (7 0). * txr.1: Add note about TXR 260 loading version 7 and 6.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.13
1 files changed, 3 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 3153aee1..317b538a 100644
--- a/txr.1
+++ b/txr.1
@@ -76823,6 +76823,9 @@ version 2, 3, 4 or 5, regardless of minor version.
Versions 252 through 259 produce version 6.0 files and loads only version 6,
regardless of minor version.
+Version 260 produces version 7.0 files and loads version 6 and 7, regardless of
+minor version.
+
.SS* Semantic Differences between Compilation and Interpretation
The