Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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: