Besides if {0} .. , which is idiomatic (and one that most tcl programmers recognize), you can also use any other construct and things you want to comment in brackets. The real obstacle to doing here is that things inside the braids are not replaced.
Here are some of my favorites. I like them because they are self-documenting:
set COMMENTED_OUT { commented out stuff }
and
proc COMMENTED_OUT {} { commented out stuff... }
I prefer to use proc because the block of commented text is really a block of code.
Note that tcl does not compile proc bodies until the first execution, so commenting using proc as cheap as set and if {0} ...
slebetman
source share