Notes on Tcl

What's here...

Tcl semantics

The syntax of Tcl is fully defined by the 11 rules listed in Tcl(n). Tcl's semantics, however, is not defined in any single location. For example, the set(n) manpage mentions the distinction between namespace variables, global variables, and local variables, and the effects of the global and variable commands, but doesn't mention upvar at all, and variable traces are referenced only in the SEE ALSO section.

I've been meaning to write a semi-formal definition of Tcl's semantics for a long time now, but have never found enough time. What little I have written on the subject appears below:


Last updated: $Date: 2003/09/22 00:22:42 $