Re: Tcl/Tk 8.5a4 released



* [TIP 215] Made [incr] auto-initialize.

Isnt this also a POTENTIAL_INCOMPATIBILITY ??

I have code that does:

if { [catch {incr BOB($x)} ] } {
set BOB($x) 1
#do other things because we know this is the 1st occurence of $x
lappend things $x
}


What if you added a flag instead ?

incr -noerror BOB($x) 1

.


Quantcast