How to concisely concatenate strings in Tcl?
问题 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 can I easily concatenate the results of calling some proc? Long hand this would be written: set foo [myFoo $arg] set bar [myBar $arg] set result "${foo}${bar}" Is there some way to create result without introducing the temporary variables foo and bar? Doing this is incorrect for my purposes: concat [myFoo $arg] [myBar $arg] as it