How to make a package from the stooop libraries:


$ mkdir /usr/local/lib/stooop
$ cp pkgIndex.tcl stooop.tcl switched.tcl /usr/local/lib/stooop

If you do not want to use the switched class as a package, comment out
the corresponding package line in pkgIndex.tcl and delete the switched
class source file from the stooop package directory
(/usr/local/lib/stooop in this example).

This is only an example, as /usr/local/lib is the default Tcl package
root directory, but you may choose another: look at the pkg_mkIndex
manual page for more information (well look at it any case :-).
For example, if you use the tcltk 8.3 rpm package on a Linux system,
/opt/tcltk/lib/stooop should be used instead.

Now, to test if it really works:

$ tclsh
% package require stooop
4.1.1
% namespace import stooop::*
% new a
invalid command name "a::a"
% package require switched
2.2
% new switched
2

All you need to do now to be able to use stooop as a package is add
the following lines at the beginning of your code:

package require stooop 4.1.1
namespace import stooop::*
package require switched 2.2

If you do not need the switched class, you may remove the last line.

