Skip to content
Tcl Source Code History Of Ticket 218043
Login

History Of Ticket 218043

Artifacts Associated With Ticket 218043

  1. Ticket change [fc8e5f1fc5] (rid 108258) by nobody on 2000-10-26 00:52:30:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 1367 Bug
      Version: 8.0.4
      SubmitDate: '1999-03-02'
      LastModified: '1999-08-07'
      Severity: SER
      Status: Closed
      Submitter: pat
      ChangedBy: hobbs
      OS: Windows 95
      Machine: X86
      FixedDate: '2000-10-25'
      ClosedDate: '1999-08-07'
      
      
      Name:
      
      john f. davis
      
      
      ReproducibleScript:
      
      I had some code which was commented out, but the interpeter gave me an error 
      
      on code which was commented out.
      
      
      #      for {foo} {foo) {foo} {
      
      
      ObservedBehavior:
      
      The interpeter said there was a missing brace.  Didn't tell me where in the code it was, so i started commenting out lines a line at a time.  I still got errors
      
      even though the code with the error was commented out.   The error was that the 
      
      second {} group in the for loop had a ")" instead of a "}".
      
      
      DesiredBehavior:
      
      I expected the missing-brace error to tell me a line number first of all.  Second, I expected that the code would be ignored when commented out.
      
      
      
      
      This is the expected behavior.  Brace balancing has precedent over
      comment detection, which can lead to programming errors like the
      above.  Compare with this perfectly legal statement:
          if {1} { puts hello; # I just puts'ed it }
      
      The parser will check that the if has two args first, then when
      true it will eval the body arg and see the two commands, the
      second being a comment. 
      -- 08/07/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.0.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "tcl parses commented code."
    11. type initialized to: "Bug"
  2. Ticket change [f0a831ca6c] (rid 109232) by welch on 2000-10-26 08:13:43:

    1. closedate changed to: "2000-10-26T01:13:43"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [0d8a588cc5] (rid 114379) by dgp on 2001-04-16 23:44:43:

    1. closedate changed to: "2001-04-16T16:44:43"
    2. closer changed to: "dgp"
    3. subsystem changed to: "45. Parsing and Eval"