diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-06-23 13:16:17 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-06-23 13:16:17 (GMT) |
commit | d36655ac538d3611c8872323f5127ca460e06b5d (patch) | |
tree | 4f03b5e0c01e83adeec7e685e8ed6361c5619539 /doc/ListObj.3 | |
parent | 6487dd7257ba0b956a051ba399b1500885760d5a (diff) | |
parent | b3605165596e32b3b22e931cae510f4b900290d7 (diff) | |
download | tcl-d36655ac538d3611c8872323f5127ca460e06b5d.zip tcl-d36655ac538d3611c8872323f5127ca460e06b5d.tar.gz tcl-d36655ac538d3611c8872323f5127ca460e06b5d.tar.bz2 |
Merge 8.7. Update documentation
Diffstat (limited to 'doc/ListObj.3')
-rw-r--r-- | doc/ListObj.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/ListObj.3 b/doc/ListObj.3 index c4aa4bc..182f2fb 100644 --- a/doc/ListObj.3 +++ b/doc/ListObj.3 @@ -184,7 +184,7 @@ if the conversion fails, it returns \fBTCL_ERROR\fR and leaves an error message in the interpreter's result value if \fIinterp\fR is not NULL. If the index is out of range, -that is, \fIindex\fR is negative or +that is, \fIindex\fR is TCL_INDEX_NONE or greater than or equal to the number of elements in the list, \fBTcl_ListObjIndex\fR stores a NULL in \fIobjPtrPtr\fR and returns \fBTCL_OK\fR. @@ -203,13 +203,13 @@ and leaves an error message in the interpreter's result value if \fIinterp\fR is not NULL. Otherwise, it returns \fBTCL_OK\fR after replacing the values. If \fIobjv\fR is NULL, no new elements are added. -If the argument \fIfirst\fR is zero or negative, +If the argument \fIfirst\fR is zero or TCL_INDEX_NONE, it refers to the first element. If \fIfirst\fR is greater than or equal to the number of elements in the list, then no elements are deleted; the new elements are appended to the list. \fIcount\fR gives the number of elements to replace. -If \fIcount\fR is zero or negative then no elements are deleted; +If \fIcount\fR is zero or TCL_INDEX_NONE then no elements are deleted; the new elements are simply inserted before the one designated by \fIfirst\fR. \fBTcl_ListObjReplace\fR invalidates \fIlistPtr\fR's |