diff options
author | ferrieux <ferrieux@users.sourceforge.net> | 2010-10-17 20:16:55 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@users.sourceforge.net> | 2010-10-17 20:16:55 (GMT) |
commit | 11dc19a6f262b238879a786a48f3a832a4a22e35 (patch) | |
tree | 4afecd576180ca43811d209aeacdc378a6231e49 /doc/info.n | |
parent | 0172b5d75aa7fb9c03668b70cd8c267b6bccd503 (diff) | |
download | tcl-11dc19a6f262b238879a786a48f3a832a4a22e35.zip tcl-11dc19a6f262b238879a786a48f3a832a4a22e35.tar.gz tcl-11dc19a6f262b238879a786a48f3a832a4a22e35.tar.bz2 |
Document [info errostack] faithfully.
Diffstat (limited to 'doc/info.n')
-rw-r--r-- | doc/info.n | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -8,7 +8,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: info.n,v 1.38 2010/04/07 09:51:31 dkf Exp $ +'\" RCS: @(#) $Id: info.n,v 1.39 2010/10/17 20:16:55 ferrieux Exp $ '\" .so man.macros .TH info n 8.4 Tcl "Tcl Built-In Commands" @@ -96,9 +96,19 @@ into variable \fIvarname\fR. .TP \fBinfo errorstack \fR?\fIinterp\fR? .VS 8.6 -Returns a list of lists made of the function names and arguments at each level -from the call stack of the last error in the given \fIinterp\fR, or in the -current one if not specified. This information is also present in the +Returns, in a form that is programmatically easy to parse, the function names +and arguments at each level from the call stack of the last error in the given +\fIinterp\fR, or in the current one if not specified. + +This form is an +even-sized list alternating tokens and parameters. Tokens are currently either +\fBCALL\fR or \fBUP\fR, but other values may be introduced in the +future. \fBCALL\fR indicates a procedure call, and its parameter is the +corresponding [info level 0]; \fBUP\fR indicates a shift in variable frames +generated by uplevel or similar, and applies to the previous CALL item. Its +parameter is the level offset. + +This information is also present in the \fB\-errorstack\fR entry of the options dictionary returned by 3-argument \fBcatch\fR; \fBinfo errorstack\fR is a convenient way of retrieving it for uncaught errors at toplevel in an interactive tclsh. |