Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a09d2ea28e46caf674ac7d4c292fa8f38bb5d177
Ticket: 1101670fffffffffffffffffffffffffffffffff
auto_reset disagrees with documentation
User & Date: vincentdarley on 2005-01-13 14:36:58
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The core proc auto_reset is documented as follows:
    
    # auto_reset --
    #
    # Destroy all cached information for auto-loading and
    auto-execution,
    # so that the information gets recomputed the next time
    it's needed.
    # Also delete any procedures that are listed in the
    auto-load index
    # except those defined in this file.
    #
    # Arguments: 
    # None.
    
    But it doesn't do that:
    
    proc auto_reset {} {
        variable ::tcl::auto_oldpath
        global auto_execs auto_index 
        foreach p [info procs] {
    if {[info exists auto_index($p)]} {
        rename $p {}
    }
        }
        catch {unset auto_execs}
        catch {unset auto_index}
        catch {unset auto_oldpath}
    }
    
    'info procs' only returns procedures in the global
    namespace. Presumably auto_reset should also delete
    procs in _all_ namespaces, if it is to agree with its
    documentation.
    
    
  4. foundin changed to: "obsolete: 8.4.9"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vincentdarley"
  9. subsystem changed to: "38. Init - Library - Autoload"
  10. title changed to: "auto_reset disagrees with documentation"
  11. type changed to: "Bug"