1: The only way i have found to ucomment in TCL is #
2: But i try to find a way to do it like C++ or PHP
I need to do
Code: Select all
# My comment
Code
Code: Select all
/* MyComment */ Code
Code: Select all
# My comment
Code
Code: Select all
/* MyComment */ Code
Don´t you think its bad that its only way to do itnml375 wrote:That is true, the only way to create a comment in tcl is by using the hash-character (#). Unless you feel like re-writing your tcl-library, don't expect to change this behaviour...
Slaktarn wrote:Don´t you think its bad that its only way to do itnml375 wrote:That is true, the only way to create a comment in tcl is by using the hash-character (#). Unless you feel like re-writing your tcl-library, don't expect to change this behaviour...
You can´t make notes on same row before a code just after and onn a own row its insane. Considering there its a old language and shuld be away to do it. My opinion relly strange
/Slaktarn
Code: Select all
set b "huh" ; # comment
set c "exactly" ; # another comment
Hehe so the only way to do it is the way you show... Hoever im not so good in TCL you seems to be relly good.speechles wrote:Putting comments before code is meant for compiled languages, tcl is interpreted. Therefore comments need to go "; #after" code, or on a line of their own. This simplifies the constructs the parser needs to recognize to see the item as a comment.Code: Select all
set b "huh" ; # comment set c "exactly" ; # another comment
Code: Select all
1: set a [lindex 1] ; # Comment
2: set b [lindex 1] # Comment
Nope, it's the way tcl works, and it works well enough for me...Slaktarn wrote:Don´t you think its bad that its only way to do itnml375 wrote:That is true, the only way to create a comment in tcl is by using the hash-character (#). Unless you feel like re-writing your tcl-library, don't expect to change this behaviour...
You can´t make notes on same row before a code just after and onn a own row its insane. Considering there its a old language and shuld be away to do it. My opinion relly strange
/Slaktarn