endAdded Tcl featuresbeginconst

const

The const command creates a tcl constant. Tcl constants are named values that cannot be altered by tcl scripts. Tcl constants can, however, be modified from the C/C++ application. You can use const values as constants in your Tcl scripts, or alternatively to reflect status values maintained by the C/C++ software. The format of the const command is:

       %  const  name ?value?
      

Where:

name is the name of the constant.
value is an optional value for the constant. if omitted, the const will have the value 0.

Normally consts will be created from the C++ code. See const "variables" for more information about accessing const's from user code.


Report documentation errors to Ron Fox (fox@nscl.msu.edu)or NSCL's Bugzilla page

endAdded Tcl featuresbeginconst