Artifacts Associated With Ticket 218240
Ticket change [266a9c3f21] (rid 88343) by nobody on 2000-10-26 00:54:57:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2791 Bug Version: 8.2 SubmitDate: '1999-09-16' LastModified: '1999-09-16' Severity: MED Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Solaris Machine: Other FixedDate: '2000-10-25' ClosedDate: '1999-09-16' Name: Louis Petro Comments: Yes - one other question. Is there anyway in TCL to know the current line number and possible the file name. I'd like to use this information for debugging similiar to the __LINE__ and __FILE_ used by the C programming language. ReproducibleScript: set x 0 while { $x < 10 } { # while { $x < 21 } { incr x } ObservedBehavior: User in our organization tend to copy code and comment out code alot. We've found that commented code is still being syntactically check by TCL. In the above example user's we receive a syntax error unless the commented out code is syntactically complete, e.g., # while { $x < 21 } { } Has this problem been identified? DesiredBehavior: I;d expect that a commented line would be treated as a comment in TCL. PatchFiles: I found that if the commented line is outside the loop above it then does not after the "while" loop. set x 0 #while { $x < 21 } while { $x < 10 } { incr x } This is the comment problem cropping up again, and this was answered in the newsgroup (cover large blocks with if 0 { }). -- 09/16/1999 hobbs - foundin initialized to: "obsolete: 8.2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Syntax error due to commented out line of TCL."
- type initialized to: "Bug"
Ticket change [b2a2657b33] (rid 98368) by welch on 2000-10-26 08:17:55:
- closedate changed to: "2000-10-26T01:17:55"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [5f2ad4adac] (rid 115766) by dgp on 2001-04-19 00:48:30:
- closedate changed to: "2001-04-18T17:48:30"
- closer changed to: "dgp"
- subsystem changed to: "45. Parsing and Eval"