next up previous contents index
Next: Creating a Tcl command Up: tcl++ Previous: tcl++   Contents   Index

Global Variables

The following global symbols are defined by tcl++:

The default interpreter used by Tcl/Tk
The window used by Tk, of type Tk_Window, useful for obtaining X information such as colourmaps
To flag an error, throw a variable of type error. Use error(char *format,...) to construct such an object. The format string is passed to sprintf, along with all remaining arguments. The resulting string is what is return by the error::what() method. Standard execptions are usually caught, and the error message return by what() is attached to TCL's error log, and TCL_ERROR return back to the interpreter.

Russell Standish 2016-09-02