The following global variables are created and managed automatically by the Tcl library. Except where noted below, these variables should normally be treated as read-only by application-specific code and by users.
You can also create your own environment variables for the Macintosh. A file named Tcl Environment Variables may be placed in the preferences folder in the Mac system folder. Each line of this file should be of the form VAR_NAME=var_data.
The last alternative is to place environment variables in a 'STR#' resource named Tcl Environment Variables of the application. This is considered a little more ``Mac like'' than a Unix style Environment Variable file. Each entry in the 'STR#' resource has the same format as above. The source code file tclMacEnv.c contains the implementation of the env mechanisms. This file contains many #define's that allow customization of the env mechanisms to fit your applications needs.
To set errorCode, applications should use library procedures such as Tcl_SetErrorCode and Tcl_PosixError, or they may invoke the error command. If one of these methods hasn't been used, then the Tcl interpreter will reset the variable to NONE after the next error.
This variable and functionality only exist if TCL_COMPILE_DEBUG was defined during Tcl's compilation.
This variable and functionality only exist if TCL_COMPILE_DEBUG was defined during Tcl's compilation.
The wish executably additionally specifies the following global variable: