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++:

interp
The default interpreter used by Tcl/Tk
mainWin
The window used by Tk, of type Tk_Window, useful for obtaining X information such as colourmaps
error
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