Skip to content
Tcl Source Code Artifact [dfd56e8084]
Login

Artifact [dfd56e8084]

Artifact dfd56e808442b279e8d7472f2231f46e2f6161f1:

Ticket change [dfd56e8084] - Ticket [1101678fffffffff|1101678fff] <i>auto_reset conflicts with tclPkgSetup</i> status still Closed with 5 other changes by vincentdarley on 2005-01-18 16:55:19.
D 2005-01-18T16:55:19
J foundin obsolete:\s8.5a3
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nI've\sadded\sa\scomment\sto\s'-lazy'\sto\ssuggest\sit\snot\sbe\sused.\n\nHowever,\sI\sstill\sthink\sthere's\sa\sproblem\shere,\sat\sleast\sin\nthe\sdocumentation,\sand\sprobably\sin\slimitations\sof\npkg_mkIndex.\s\sThe\sdocumentation\ssays\syou\sshould\suse\n'pkg_mkIndex',\sand\sgoes\sto\ssome\slengths\sto\sexplain\ssimple\svs\ncomplex\spackages,\sdependencies\setc.\n\nHowever,\sthe\send\sresult\sis\ssimply\sthat\s'pkg_mkIndex'\sworks\nwell\sfor\sa\spackage\scomposed\sof\sa\ssingle\sfile\s(whether\s.dll\nor\s.tcl),\sbut\sanything\smore\sthan\sthat,\sgiven\sthat\s-lazy\sis\nbuggy,\srequires\sone\sto\smanually\screated\sa\stclIndex\sfile\sand\nthen\smanually\screate\sa\spkgIndex.tcl\sfile\s(which\shas\sto\sadd\n$dir\sto\sthe\sauto_path).\n\nSurely\spkg_mkIndex\sshould\sdo\sthat\sfor\sme.\s\sIn\sfact,\swhy\snot\nre-write\sthe\s'-lazy'\simplementation\sto\sdo\sjust\sthat:\n\n-lazy\swill:\n\n(i)\sbuild\sits\slist\sof\ssource-able\sprocs\sand\sload-able\ncommands\sas\sper\snormal.\n(ii)\sThen\sit\swill\swrite\sthose\sthings\sto\sa\snew\stclIndex\sfile\nin\sthe\sgiven\sdirectory\s(this\sis\sa\snew\sstep).\n(iii)\sFinally\sit\swill\sconstruct\sa\spkgIndex.tcl\sfile\swhich\nadds\sthe\srelevant\s$dir\sto\sthe\sauto_path.\n\nIn\sthis\sway\swe\swould\shave\ssomething\sthat\sactually\s_works_,\nhas\sno\sproblems\swith\s'auto_reset',\sand\shas\sthe\sproperties\sof\n'-lazy'\sthat\swe\swant\s(don't\ssource\severy\ssingle\sscript\sin\sa\nmulti-script\spackage\sunless\swe\sactually\sneed\sthem).\n\n\n
J login vincentdarley
J mimetype text/plain
J username vincentdarley
K 1101678fffffffffffffffffffffffffffffffff
U vincentdarley
Z f7f972c9152a1aca30f62c103118840a