Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5c28ace41b1effb938c2b3ed4037849436be11b1
Ticket: 218284ffffffffffffffffffffffffffffffffff
When compiling proc's, the Tcl compiler detects code that ha
User & Date: nobody on 2000-10-26 00:55:33
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3440 Bug
    Version: 8.1
    SubmitDate: '1999-11-05'
    LastModified: '1999-11-08'
    Severity: LOW
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Other
    OSVersion: Solaris 5.6, HP-UX 10.x, IRIX 6.x, Windows NT
    FixedDate: '2000-10-25'
    ClosedDate: '1999-11-08'
    
    
    Name:
    
    Gerald V Jackson
    
    
    
    ReproducibleScript:
    
    proc test {} {
    
           #The next line will cause pre-compiling to fail
    
           #if {1 > 2} {
    
           #the next line will be ok
    
           #if {1 > 2} {}
    
           if {1 >= 2} {
    
              puts "the laws of math & science have changed!"
    
           }
    
        }
    
        
    
        #the next line will be ok
    
        #if {if 1 < 2} {
    
        puts "about to run the test proc"
    
        test
    
        
    
        exit
    
    
    
    ObservedBehavior:
    
    missing close-brace
    
              while compiling
    
        "proc test {} {..."
    
             (file xyz line 3)
    
    
    
    DesiredBehavior:
    
    The compiler should skip everything after the # until the next
    
        non-escaped line.
    
        The current behavior makes it difficult to quickly comment out errant
    
        code or
    
        incomplete code statements.
    
        
    
        Otherwise, I love it!
    
    
    
    
    
    This is due to unbalanced braces in the comments (discussed at
    length on the newsgroup).  This will be improved with a better
    error message in 8.3. 
    -- 11/08/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.1"
  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:
    When compiling proc's, the Tcl compiler detects code that ha
    
  11. type changed to: "Bug"