#4336 incr command doesn't error out on nonexistent variable

obsolete: 8.5.5
closed-invalid
5
2009-04-07
2009-04-07
Yuri
No

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)

Discussion

    • status: open --> closed-invalid
     
  • This was a deliberate change in 8.5. See http://tip.tcl.tk/215.html for reasoning.