Friday, February 1, 2013

Order of substitution : TCL

Substitutions take place from left to right, and each substitution is evaluated completely before attempting to evaluate the next. Thus, a sequence like:

set y [set x 0][incr x][incr x]

will always set the variable y to the value, 012.

No comments:

Post a Comment