Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 688c378182b1102d92012088583b304e4bda8d00
Ticket: 218162ffffffffffffffffffffffffffffffffff
errors with comments
User & Date: nobody on 2000-10-26 00:53:57
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.0p2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "errors with comments"
  11. type changed to: "Bug"