September 2009
Intermediate to advanced
816 pages
19h 38m
English
Many Tcl commands, such as if and while, have arguments that are Tcl scripts. The C functions for these commands evaluate them recursively to evaluate the scripts. If Tcl_EvalObjEx or any of its related evaluation functions returns a completion code other than TCL_OK, an exception is said to have occurred. Exceptions include TCL_ERROR, which was described in Chapter 31, plus several others that have not been mentioned yet. This chapter introduces the full set of exceptions and describes how to unwind nested evaluations and leave useful information in the errorInfo and errorCode variables.
• Tcl_AddObjErrorInfo(Tcl_Interp *interp, char *message, int length)
Adds error text ...
Read now
Unlock full access