next up previous contents
Next: Creating a Tcl Up: tcl++ Previous: tcl++

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
TclError
A longjmp label used for trapping errors - this will be replaced by exception handling once g++ has this ability
error
To flag an error, call error(char *format,...). The format string is passed to sprintf, along with all remaining arguments. The error message is attached to Tcl's error log, and then control branches to TclError, which returns a TCL_ERROR code back to Tcl.



Russell Standish
Mon Feb 20 17:13:01 EST 1995