Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 957bdede80421622f8a29c6c4bdee2952f626609
Ticket: 2964719fffffffffffffffffffffffffffffffff
Improve handling of ::auto_path in Safe Base interpreters
User & Date: kjnash on 2010-03-06 13:41:41
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    #     THE STATUS QUO:
    #
    #     The Safe Base makes the slave's ::auto_path identical to its access path.
    #     This arrangement pre-dates both modules and the "safe" glob command.
    #     In a safe interpreter glob would raise an error (which was then caught)
    #     when tclPkgUnknown used it to access subdirectories of the ::auto_path; in
    #     a safe interpreter the auto_path was made identical to the access path so
    #     that all packages could be accessed.
    #
    #     Now that "safe" glob is available, it has a kludge to prevent
    #     tclPkgUnknown from looking for packages in the grandchildren of the
    #     "intended" ::auto_path directories.
    #
    #     With the introduction of Tcl modules, the access path now also includes
    #     the module path and its subdirectories (to unlimited depth): these are in
    #     the safe interpreter's ::auto_path but do not belong there.
    #
    #     FEATURE REQUEST:
    #
    #     The ::auto_path should be managed separately from the access_path, and
    #     should not include the module path.  At a future revision of Tcl (8.6?),
    #     the tclPkgUnknown kludge should be removed from AliasGlob, and the safe
    #     interpreter ::auto_path should be defined in the same way as unsafe
    #     interpreters (so that its subdirectories are searched for packages).
    #     Changes to the Safe Base public API will be needed, either in the commands
    #     and their options, or in their effects: for example the Safe Base might
    #     refrain from setting a slave's ::auto_path, and require the master
    #     interpreter to do so explicitly.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "kjnash"
  10. subsystem changed to: "33. Safe Base"
  11. title changed to:
    Improve handling of ::auto_path in Safe Base interpreters
    
  12. type changed to: "RFE"