Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

prob with commenting a line that has '}'

Status
Not open for further replies.

RajVerma

Programmer
Jun 11, 2003
62
DE
hi all,
I donno whether it is a bug or not, but I got really frustrated to know that the prob with my code was just commenting a line that has only one character '}'. I was wondering what cud be wrong 'cos everything seems ok and the error it raises is something different. it went on like this. I had a procedure 'save' that has to be called upon a button click.

save{} {
----
----
#if {} {
#----
#----
#}
.newWindow.f14.e1 get
----
}

the error it raised was it cudn't recognize the new window frame. my first surprise was wat's wrong with this code and 2nd was why the hell it shud run this procedure first of all at the start of the program. then it took quite some time to recognize that it doesn't accept to put a comment immediately before '}' and it takes this brace as a part of the procedure.

Is this a prob with the version or some thing else??

thanx,
Raj.
 
This is a side-effect of Tcl's basic implementation. For a detailed explanation, go to the Tcl'ers Wiki ( and check out the page "Why can I not place unmatched braces in Tcl comments,"
- Ken Jones, President, ken@avia-training.com
Avia Training and Consulting, 866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top