Manifest of check-in
[f3d065fb9d]
- * library/init.tcl: Various small changes requested by Jan Nijtmans.
- If the variable $tcl_library contains the empty string, this
empty string will be put in $auto_path. This is not useful at all,
it only slows down later package processing.
- If the variable tcl_pkgPath is not set, the "unset __dir"
fails. Thich makes init.tcl totally unusable. Better put a "catch"
around it.
- In the function tcl_findLibraries, the "string match" function
only works correctly if $tcl_patchLevel is in one of the forms
"?.?a?", "?.?b?" or "?.?.?". Could a "regexp" be used instead,
then it allows anything to be appended to the patchLevel
string. And it is more efficient.
- The tclPkgSetup function assumes that if $type != "load" then
the type must be "source". This needn't be true. Some users want
to add their own setup types.
[RFE: 1138] [Bug: 978]
by
stanton on
1999-02-02 22:28:10.
B a4d159d25f51a9978e6e83f60d5a734be5722b99
C *\slibrary/init.tcl:\sVarious\ssmall\schanges\srequested\sby\sJan\sNijtmans.\n-\sIf\sthe\svariable\s$tcl_library\scontains\sthe\sempty\sstring,\sthis\nempty\sstring\swill\sbe\sput\sin\s$auto_path.\sThis\sis\snot\suseful\sat\sall,\nit\sonly\sslows\sdown\slater\spackage\sprocessing.\n-\sIf\sthe\svariable\stcl_pkgPath\sis\snot\sset,\sthe\s"unset\s__dir"\nfails.\sThich\smakes\sinit.tcl\stotally\sunusable.\sBetter\sput\sa\s"catch"\naround\sit.\n-\sIn\sthe\sfunction\stcl_findLibraries,\sthe\s"string\smatch"\sfunction\nonly\sworks\scorrectly\sif\s$tcl_patchLevel\sis\sin\sone\sof\sthe\sforms\n"?.?a?",\s"?.?b?"\sor\s"?.?.?".\sCould\sa\s"regexp"\sbe\sused\sinstead,\nthen\sit\sallows\sanything\sto\sbe\sappended\sto\sthe\spatchLevel\nstring.\sAnd\sit\sis\smore\sefficient.\n-\sThe\stclPkgSetup\sfunction\sassumes\sthat\sif\s$type\s!=\s"load"\sthen\nthe\stype\smust\sbe\s"source".\sThis\sneedn't\sbe\strue.\sSome\susers\swant\nto\sadd\stheir\sown\ssetup\stypes.\n[RFE:\s1138]\s[Bug:\s978]\n
D 1999-02-02T22:28:10
F generic/tclPosixStr.c 5ea7fb12a9da9ee0572ccd56bab95fb5fcf1b7a1
F library/init.tcl 638000c5993b49368d3757aac8bc8e813257eb67
P 53c251c547c609480f324a8903b5d3c000c2bf54
U stanton
Z 175fedc081ec1f581bdaeb7d9b799d9c