Skip to content
Tcl Source Code History Of Ticket 217905
Login

History Of Ticket 217905

Artifacts Associated With Ticket 217905

  1. Ticket change [2b82a2ea15] (rid 118757) by nobody on 2000-10-26 00:45:43:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2594 Bug
      Version: 8.2
      SubmitDate: '1999-08-20'
      LastModified: '1999-08-20'
      Severity: LOW
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      RelatedBugIDs: 1367
      OS: Windows 98
      Machine: X86
      FixedDate: '2000-10-25'
      ClosedDate: '1999-08-20'
      
      
      Name:
      
      Devananda van der Veen
      
      
      
      CVS:
      
      8/18/99
      
      
      
      ReproducibleScript:
      
      button .b -text hello -command {
      
          puts "Hello"
      
          # this line should be ignored but its not }
      
          puts "and this will only print once"
      
          
      
          # but this line is ignored }
      
          
      
          pack .b
      
      
      
      ObservedBehavior:
      
      There is no close-brace to match the open-brace of the -command option.
      
          However, the script executes just fine, closing the -command section at
      
          the end of the second line, before the second puts command. Tcl must
      
          have read the "}" at the end of the commented line.... which it should
      
          not do! However, it does not give an error for wither of the other
      
          commented lines, which implies that Tcl only interprets close-braces in
      
          commented lines when there is a matching open brace.
      
      
      
      DesiredBehavior:
      
      Tcl should completely ignore lines that have been 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/20/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.2"
    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 finds close braces when they are in commented lines
      
    11. type initialized to: "Bug"
  2. Ticket change [dab2e12bd0] (rid 107838) by welch on 2000-10-26 08:09:12:

    1. closedate changed to: "2000-10-26T01:09:12"
    2. closer changed to: "welch"
    3. priority changed to: "3 Low"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [a0faa26f8f] (rid 96905) by dgp on 2001-04-14 02:08:44:

    1. closedate changed to: "2001-04-13T19:08:44"
    2. closer changed to: "dgp"
    3. subsystem changed to: "45. Parsing and Eval"