Artifacts Associated With Ticket 217839
Ticket change [e0fd36b214] (rid 87368) by nobody on 2000-10-26 00:44:43:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1715 Bug Version: 8.0.4 SubmitDate: '1999-04-05' LastModified: '1999-08-07' Severity: LOW Status: Closed Submitter: pat ChangedBy: hobbs RelatedBugIDs: 1367 2206 OS: All OSVersion: NA Machine: NA FixedDate: '2000-10-25' FixedInVersion: NA ClosedDate: '1999-08-07' Name: Zachary Wicky email: [email protected] Support: None Severity: 4 OperatingSystem: Sun Solaris Synopsis: parsing problem ReproducibleScript: # ldjflksdalkasdf; puts abc" puts "def"; # akjfaj klfasjklj set x 88 if {$x == 1} { set x 1 #} else{ # set x 2 } ObservedBehavior: if you look at the first two comments, they are ignored, the third comment with the bad else, is parsed. Even though once it hits the comment line, parsing should stop (at least according to the "ldjf" line. We got hung up on this bug due to the way things are set up on our program, the errors are getting sent into a black hole, so we didn't notice it. It doesn't change the world, but I want to let you know about a 'possible' parsing error. I didn't even pay attention to the line with the comments at the start thinking, "Hey, these can't be the source of the problem" This is the expected comment behavior. Brace matching is done before comment recognition, which can cause confusion like this. An example showing correctness: if {1} {set a 5; # set the var} The bracing must be considered first (in the context of the 'if'). Only when the if is evaled do we recognize the 2nd command as a comment. -- 08/07/1999 hobbs
- foundin initialized to: "obsolete: 8.0.4"
- 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: "parsing problem"
- type initialized to: "Bug"
Ticket change [7193bf4c8e] (rid 100706) by welch on 2000-10-26 07:59:46:
- closedate changed to: "2000-10-26T00:59:46"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Invalid"
- status changed to: "Closed"
Ticket change [e588d6a681] (rid 104136) by dgp on 2001-04-13 23:17:16:
- closedate changed to: "2001-04-13T16:17:16"
- closer changed to: "dgp"
- subsystem changed to: "45. Parsing and Eval"