diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2021-04-26 07:58:16 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2021-04-26 07:58:16 (GMT) |
commit | 8d556345fd97eb9d60d2e7e1e372e1cc52939ff5 (patch) | |
tree | 6a816b87f19ec34be25a0f50066990db21455624 /doc/NRE.3 | |
parent | aa1949c4f3d10fedc5209ff5c34a9f6d2442293e (diff) | |
parent | 42a77f7b4b1e4f3699d71cd2cf9fe6de7e9e4d71 (diff) | |
download | tcl-8d556345fd97eb9d60d2e7e1e372e1cc52939ff5.zip tcl-8d556345fd97eb9d60d2e7e1e372e1cc52939ff5.tar.gz tcl-8d556345fd97eb9d60d2e7e1e372e1cc52939ff5.tar.bz2 |
merge core-8-branch
Diffstat (limited to 'doc/NRE.3')
-rw-r--r-- | doc/NRE.3 | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -227,6 +227,25 @@ int Any function comprising a routine can push other functions, making it possible implement looping and sequencing constructs using the function stack. .PP +.SH "REFERENCE COUNT MANAGEMENT" +.PP +The first \fIobjc\fR values in the \fIobjv\fR array passed to the functions +\fBTcl_NRCallObjProc\fR, \fBTcl_NREvalObjv\fR, and \fBTcl_NRCmdSwap\fR should +have a reference count of at least 1; they may have additional references +taken during the execution. +.PP +The \fIobjPtr\fR argument to \fBTcl_NREvalObj\fR and \fBTcl_NRExprObj\fR +should have a reference count of at least 1, and may have additional +references taken to it during execution. +.PP +The \fIresultObj\fR argument to \fBTcl_NRExprObj\fR should be an unshared +object. +.PP +Use \fBTcl_NRAddCallback\fR to schedule any required final decrementing of the +reference counts of arguments to any of the other functions on this page, as +with any other post-processing step in the non-recursive execution engine. +.PP +The .SH "SEE ALSO" Tcl_CreateCommand(3), Tcl_CreateObjCommand(3), Tcl_EvalObjEx(3), Tcl_GetCommandFromObj(3), Tcl_ExprObj(3) .SH KEYWORDS |