Updated 2011-01-16 07:22:01 by RLE

(Aiming for something between Wittgenstein and Bach, will probably end up like Borges' Animals [1] - CMcC Could be, but what has Wittgenstein to do with any of this? The title of this page is all on the Bach side. [2] - Lars H - RS: A title closer to Wittgenstein would be Tractatus Ticcelo-philosophicus.. :)

0. The simplicity of Tcl stems from its simple syntax and processing model

The application of the Endekalogue to a value, followed by the resolution of [lindex $cmd 0] as the name of a functor and its application to [lrange $cmd 1 end] as arguments is the fundamental form of Tcl.

1. The extensibility of Tcl stems from its processing model

proc {upvar; X; [uplevel Y]; return;} is a skeleton which allows you to create and extend any tcl command or proc.

2. The universality of Tcl stems from the fact that values have string representation

It is not precisely true to say everything is a string, but everything which has a value has a string value. So any processing can be performed on strings.

2a. Tcl has a rich set of string operators

This enables X (1. above) to decide what to do in the surrounding processing scope, and Y to effect it.

3. Tcl has many powerful naming capabilities

3a. proc introduces and defines a functional name,

3b. set and array create named state. Together with [$] they also reference named state.

3c. global upvar and variable localise scoped names

4. Tcl has several scopes for name resolution

4.1 namespace partitions the global naming scope. The naming convention of using :: to explicitly navigate these partitions.

4.2 interp forks the global naming scope.

4.3 thread forks the top level interp