Re: Tcl/Tk 8.5a4 released
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Tcl/Tk 8.5a4 released

From: <pedietz@west.com>
Date: Fri Apr 28 2006 - 19:50:41 CEST

> * [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
Received on Sun Apr 30 03:30:51 2006