Skip to content
Tcl Source Code View Ticket
Login

View Ticket

When compiling proc's, the Tcl compiler detects code that ha

Closed / Fixed218284ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:55:33
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
welch Closed ticket [218284ffff]. [History diff]2000-10-26 08:18:58
dgp Ticket [218284ffff]: 3 changes [History diff]2001-04-18 06:39:21
Log in (anonymous is fine) to add a comment.