I can easily concatenate two variables, foo and bar, as follows in Tcl: \"${foo}${bar}\".
However, if I don\'t want to put an intermediate result into a variable, how ca
You can embed commands within a double-quoted string without the need for a temporary variable:
set result "[myFoo $arg][myBar $arg]"
If you are doing this many times, in a loop, or separated by some intermediate code, you might also consider:
set result ""
append result [myFoo $arg]
append result [myBar $arg]
append result [myBaz $arg]
just write it as a word with no extra spaces:
[myFoo $arg][myBar $arg]
Tcl sees this as a single word after substitution, regardless of the result of the two subcommands.