Skip to content
Tcl Source Code History Of Ticket 218162
Login

History Of Ticket 218162

Artifacts Associated With Ticket 218162

  1. Ticket change [688c378182] (rid 103088) by nobody on 2000-10-26 00:53:57:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2206 Bug
      Version: 8.0p2
      SubmitDate: '1999-06-15'
      LastModified: '1999-08-05'
      Severity: MED
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Solaris
      Machine: Other
      FixedDate: '2000-10-25'
      ClosedDate: '1999-08-05'
      
      
      Name:
      
      Dimitry Patent
      
      
      
      Extensions:
      
      Tix, BLT
      
      
      
      ReproducibleScript:
      
      proc SomeProc { some parameters } {
      
          
      
          #    if { $something } {
      
          
      
              if { $something_else } {
      
          
      
          Do_something
      
              }
      
          }
      
      
      
      ObservedBehavior:
      
      last bracket matches with comment line instead of proc line. Tcl interp
      
          invoked from within another tool my group is working on. Stack trace :
      
          
      
          ERROR: bgerror: missing close-brace
      
              while compiling
      
          "traceproc Edit {tree selected {ext ""}} { ..."
      
              (file "/user/dpatent/cvs/borg/tcl/viewedit.tcl" line 159)
      
              invoked from within
      
          "source $file"
      
              (procedure "ReloadSource" line 6)
      
              invoked from within
      
          "ReloadSource"
      
              (procedure "Reload" line 4)
      
              invoked from within
      
          "Reload"
      
              invoked from within
      
          ".main.mainmenu.special.m invoke active"
      
              ("uplevel" body line 1)
      
              invoked from within
      
          "uplevel #0 [list $w invoke active]"
      
              (procedure "tkMenuInvoke" line 29)
      
              invoked from within
      
          "tkMenuInvoke .main.mainmenu.special.m 1"
      
              (command bound to event)
      
      
      
      DesiredBehavior:
      
      last brace should match top line.
      
      
      
      
      
      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/05/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.0p2"
    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: "errors with comments"
    11. type initialized to: "Bug"
  2. Ticket change [820dcdaf27] (rid 117157) by welch on 2000-10-26 08:15:57:

    1. closedate changed to: "2000-10-26T01:15:57"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [3eb9cc0f6f] (rid 121321) by dgp on 2001-04-16 20:46:45:

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