Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. 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 ?
    
    
    
  4. foundin changed to: "obsolete: 8.4.11"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "hobbs"
  9. subsystem changed to: "38. Init - Library - Autoload"
  10. title changed to: "Bring Tcl library up to 8.4 code standards"
  11. type changed to: "Patch"