Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dfd56e808442b279e8d7472f2231f46e2f6161f1
Ticket: 1101678fffffffffffffffffffffffffffffffff
rewrite [pkg_mkIndex -lazy] to generate tclIndex file
User & Date: vincentdarley on 2005-01-18 16:55:19
Changes

  1. foundin changed to: "obsolete: 8.5a3"
  2. icomment:
    Logged In: YES 
    user_id=32170
    
    I've added a comment to '-lazy' to suggest it not be used.
    
    However, I still think there's a problem here, at least in
    the documentation, and probably in limitations of
    pkg_mkIndex.  The documentation says you should use
    'pkg_mkIndex', and goes to some lengths to explain simple vs
    complex packages, dependencies etc.
    
    However, the end result is simply that 'pkg_mkIndex' works
    well for a package composed of a single file (whether .dll
    or .tcl), but anything more than that, given that -lazy is
    buggy, requires one to manually created a tclIndex file and
    then manually create a pkgIndex.tcl file (which has to add
    $dir to the auto_path).
    
    Surely pkg_mkIndex should do that for me.  In fact, why not
    re-write the '-lazy' implementation to do just that:
    
    -lazy will:
    
    (i) build its list of source-able procs and load-able
    commands as per normal.
    (ii) Then it will write those things to a new tclIndex file
    in the given directory (this is a new step).
    (iii) Finally it will construct a pkgIndex.tcl file which
    adds the relevant $dir to the auto_path.
    
    In this way we would have something that actually _works_,
    has no problems with 'auto_reset', and has the properties of
    '-lazy' that we want (don't source every single script in a
    multi-script package unless we actually need them).
    
    
    
    
  3. login: "vincentdarley"
  4. mimetype: "text/plain"
  5. username: "vincentdarley"