From: <ke...@cr...> - 2003-03-26 20:44:26
|
Donal Fellows: > Without [dict incr], it's a lot more expensive to handle the case > where the key > might not already exist. Either you're using [dict exists] as a > pre-check, or > you are messing around with [catch], neither of which is going to be > all that > good for speed. (This is an itch that I really wanted to scratch.) Mo DeJong: > That is not how Tcl's incr command works. I am not sure it is a good > idea to add a subcommand to a Tcl data structure that acts like an > existing Tcl commands except with some minor differences. I would vote in favor of a TIP to make the stock [incr] work the same way. -- 73 de ke9tv/2, Kevin KENNY GE Corporate Research & Development ke...@cr... P. O. Box 8, Bldg. K-1, Rm. 5B36A Schenectady, New York 12301-0008 USA |