summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-06-03 06:21:36 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-06-03 06:21:36 -0700
commitc66aa75d955df8eae0b5553a5a57601245ad65af (patch)
treef63352f1f7966a0d7dd2efd9bb855a8c16bc099e /txr.1
parente2437397f8f4430fd479cafe9495e5a19e970f86 (diff)
downloadtxr-c66aa75d955df8eae0b5553a5a57601245ad65af.tar.gz
txr-c66aa75d955df8eae0b5553a5a57601245ad65af.tar.bz2
txr-c66aa75d955df8eae0b5553a5a57601245ad65af.zip
Documenting the return value of rplaca and rplacd, and changing
it to be the cell, rather than the new value. * eval.c (transform_op): Fix use of rplacd that uses return value. (force): Likewise. * lib.c (rplaca, rplacd): Return cons. (rem_lazy_rec, obj_init): Fix use of rplacd that uses return value. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.15
1 files changed, 5 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index b54ce957..2a62737d 100644
--- a/txr.1
+++ b/txr.1
@@ -7102,6 +7102,11 @@ is the same as the more generic (set (car x) y), and likewise
It is an error if <cons> is not a cons or lazy cons. In particular,
whereas (car nil) is correct, (rplaca nil ...) is erroneous.
+The rplaca and rplacd functions return <cons>.
+
+Note: TXR versions 89 and earlier, these functions returned the new value.
+The behavior was undocumented.
+
.SS Functions second, third, fourth, fifth and sixth
.TP