Overview
| Artifact ID: | 9c7d02ab48472a0f41a23ce883f82ebe825eefd7 |
|---|---|
| Ticket: | 1237755fffffffffffffffffffffffffffffffff
Bring Tcl library up to 8.4 code standards |
| User & Date: | hobbs on 2005-07-13 19:00:07 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed to:
Received from Patrick Fradin [patrick.fradin at synelec.fr]: (Tk submitted separately) I made next modifications joined in 2 archives : - Always use eq / ne to compare strings instead of string equal, string match, string compare, == and so on... I think it's simplify code readability and maintenance. - Replace some simple regsub with string map to improve exec performance - Replace some simple regexp with string match for the same reasons - Use unset -nocomplain to avoid if info exists or catch - Use trace add variable write/unset instead of old trace variable w/u - Use trace remove variable instead of old trace vdelete - Use trace info variable instead of old trace vinfo - use [list] to initialize empty list instead of "" or {} string - Avoid code abbreviations to clarify code and avoid reading errors ex: string len -> string length $w config -> $w configure ... - Replace some simple eval $cmd commands with "compiled" if 1 $cmd (speedier) - Use foreach to parse values instead of many lindex (ex: clrpick.tcl) - Replace regexp "dummy" variable with "->" to improve readability - I remarked some catch {destroy $w}. I think it's useless, isn't it ? - foundin changed to: "obsolete: 8.4.11"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "hobbs"
- subsystem changed to: "38. Init - Library - Autoload"
- title changed to: "Bring Tcl library up to 8.4 code standards"
- type changed to: "Patch"