Skip to content
Tcl Source Code View Ticket
Login

View Ticket

incr command doesn't error out on nonexistent variable

Closed / Invalid2740206fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-04-07 09:48:53
testcase:
incr i

In tcl8.5.6 it succeeds. This is a problem.

In tcl8.4.19 it produced an error:
can't read "i": no such variable
    (reading value of variable to increment)
    invoked from within
"incr i"
    (file "incr.tcl" line 2)
dkfplain2009-04-07 17:01:33
allow_comments - 1

This was a deliberate change in 8.5. See http://tip.tcl.tk/215.html for reasoning.
Log in (anonymous is fine) to add a comment.