|
From: Donald G P. <don...@ni...> - 2012-11-19 15:44:30
|
>> Agreed. For the rare case where you want to be sure a variable is there >> before you unset it, you can use "info exists" to look; that's >> preferable to having to trap an error with catch, anyway. I believe the folks that like a complaining [unset] like it because it lets them more quickly and reliably detect when they've typo'd the variable name argument(s) they pass to it. That desire can of course continue to be satisfied with a complaining [unset] dropped in to replace the built-in one only at the time when the developer needs the crutch, and no longer for all Tcl scripts for all time. -- | Don Porter Applied and Computational Mathematics Division | | don...@ni... Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________| |