From: Arjen M. <arj...@wl...> - 2007-03-20 08:02:10
|
Andreas Kupries wrote: >useLocal ... > >When you have a tcllib package FOO depending on a Tcllib package BAR the >testsuite cannot simply do 'package require BAR'. > >Because if you do you are in the danger of not getting the version of BAR >which is in the Tcllib you are working with, but some previously installed >version of BAR, likely older, likely different. > >So I added commands to devtools/testutilities which allow you to load a >Tcllib package directly, without going through the regular package >management. > >The main commands are 'useLocal' and 'use'. > >The first of these assumes that the package BAR you want is in the same >module as the using package FOO. This is the case for mvlinreg and linalg, >both are in the math module. 'use' OTOH just assumes the BAR is somewhere in >Tcllib, and you have to specify the module as well, as part of the path to >the file you are loading. I.e. if BAR is in mode ZAT you say > > use ZAT/BAR bar ... > >Does the above make sense ? > > Hi Andreas, it makes perfect sense! I was imagining things about cleaning up etc, but this is a much simpler explanation. Thanks for the above (and the software it talks about - it is such a pleasure to use sak, especially due to its extensive online help). Regards, Arjen |