summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-02-27 21:21:33 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-02-27 21:21:33 -0800
commit200ce0286922a5cb3ebc1b13744bb1e5d3f4b0d9 (patch)
treeaabf8ffce76cda9e3ca3885bd645f9549a466164 /txr.1
parentfa7f323c2bdbcd307bf16b09cf635cf8e10d412b (diff)
downloadtxr-200ce0286922a5cb3ebc1b13744bb1e5d3f4b0d9.tar.gz
txr-200ce0286922a5cb3ebc1b13744bb1e5d3f4b0d9.tar.bz2
txr-200ce0286922a5cb3ebc1b13744bb1e5d3f4b0d9.zip
Version 82.txr-82
Diffstat (limited to 'txr.1')
-rw-r--r--txr.122
1 files changed, 18 insertions, 4 deletions
diff --git a/txr.1 b/txr.1
index b567a7ed..ef44288c 100644
--- a/txr.1
+++ b/txr.1
@@ -21,9 +21,9 @@
.\"IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\"WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-.TH "TXR" 1 2014-02-25 "Utility Commands" "TXR Text Processing Language" "Kaz Kylheku"
+.TH "TXR" 1 2014-02-27 "Utility Commands" "TXR Text Processing Language" "Kaz Kylheku"
.SH NAME
-txr \- text processing language (version 81)
+txr \- text processing language (version 82)
.SH SYNOPSIS
.B txr [ options ] query-file { data-file }*
.sp
@@ -6915,7 +6915,11 @@ If <list> is an atom, it is simply returned.
Otherwise, <list> is a cons cell, and copy-list returns
(cons (car <list>) (copy-list (cdr <list>))) except that recursion
-is not used.
+is not necessarily used.
+
+Note that the object (car <list>) is not deeply copied, but only
+propagated by reference into the new list. copy-list produces
+a new list structure out of the same items that are in <list>.
.TP
Dialect Note:
@@ -8109,7 +8113,7 @@ Syntax:
.TP
Description:
-The force function accepts a promise object produced by the delay function.
+The force function accepts a promise object produced by the delay macro.
The first time force is invoked <promise>, the promise expression
is evaluated (in its original lexical environment, regardless of where
in the program the force call takes place). The value of the expression is
@@ -9385,6 +9389,16 @@ returns nil. If <sequence> is a list, it returns (copy-list <sequence>);
if <sequence> is a string, it returns (copy-str <sequence>); and
if <sequence> is a vector, it returns (copy-vec <sequence>).
+Except in the case when <sequence> is nil, copy returns a value that
+is distinct from (not eq to) <sequence>. This is different from
+the behavior of [<sequence> 0..t] or (sub <sequence> 0 t), which recognize
+that they need not make a copy of <sequence>, and just return it.
+
+Note however, that the elements of the returned sequence may be
+eq to elements of the original sequence. In other words, copy is
+a deeper copy than just duplicating the <sequence> value itself,
+but it is not a deep copy.
+
.SS Function sub
.TP