Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e0fd36b2142b9373e082518204d64f9dd2b894ee
Ticket: 217839ffffffffffffffffffffffffffffffffff
parsing problem
User & Date: nobody on 2000-10-26 00:44:43
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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
    
  4. foundin changed to: "obsolete: 8.0.4"
  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: "parsing problem"
  11. type changed to: "Bug"