Starting with version 7.5 of Tcl, the package facility (see package
manual page) became available. Instructions on how to make a stooop
package follow.

First you must choose whether you will use the dynamically loadable
speedup library. If you do, please follow the instructions for
building the library on your system at the beginning of the stooop.c
file.


1a. simple case (Tcl only with stooop.tcl)
------------------------------------------

Edit pkgIndex.tcl and uncomment the proper "package ifneeded" line.

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

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 :-).

Now, to test if it really works:

$ tclsh
% package require stooop
3.0
% namespace import stooop::*
% info proc new
new
% exit


1b. other case (with stooop.tcl and libstooopX.X.so)
----------------------------------------------------

Edit pkgIndex.tcl and uncomment the proper "package ifneeded" line.

$ mkdir /usr/local/lib/stooop
$ cp pkgIndex.tcl stooop.tcl libstooop3.0.so /usr/local/lib/stooop

Now, to test if it really works:

$ tclsh
% package require stooop
3.0
% namespace import stooop::*
% info proc new
% info command new
new
% exit

Note that new is now a command, not a procedure.

2. example
----------

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 3.0
namespace import stooop::*
