Building on existing Tcl features
Built-in trace command
- associates callbacks with changes to Tcl variables
- uses mnemonic keywords to manipulate callbacks
Extended trace command
- Tcl API associates callbacks with changes to Tcl extension objects
- C API supports creating traceable object types and detecting changes
Extended trace APIs closely modeled on their built-in precursors