Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-09-23
05:18 • Closed ticket [1032805fff]: defer syntax errors to execution time plus 8 oth... artifact: 821bbfab43 user: dgp
05:18 • Add attachment 1032805.patch to ticket [1032805fff] artifact: 5bac3a2dbe user: dgp
00:46 • Ticket [1032805fff] defer syntax errors to execution time status still Open ... artifact: deb26d6592 user: dgp
00:13 • Ticket [1032805fff]: 4 changes artifact: d8dfaf6ae8 user: dgp
2004-09-22
17:13 • New ticket [1032805fff]. artifact: a8cedb68a3 user: dgp

defer syntax errors to execution time

Closed / Fixed1032805fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-09-22 17:13:16
% proc test {} {
            proc if {a b} { uplevel 1 [list set $a $b] }
            set 1 {syntax {}{}}
            if 1 {syntax {}{}}
        }
% test
extra characters after close-brace

The compile time report of the
syntax error prevents this proc
from running, and when it runs,
there's no longer a syntax error.

Here's a patch that defers
syntax error reporting to
execution time.
dgpplain2004-09-23 00:13:16
File Added - 102421: defer.patch
dgpplain2004-09-23 00:46:24
File Added - 102426: 1032805.patch

Logged In: YES 
user_id=80530

revised patch corrects
some refcount issues.
dgpplain2004-09-23 05:18:59
File Deleted - 102426: 



File Added - 102465: 1032805.patch

Logged In: YES 
user_id=80530


revised patch supports -errorline
and adds comments and tests.
committing to HEAD.
Log in (anonymous is fine) to add a comment.

Attachments: