"bug" report on scotty

Louis A. Mamakos (louie@TransSys.COM)
Thu, 26 Sep 1996 00:33:30 -0400

I've been doing some work with [incr tcl] recently, and decided to build
a version of scotty/Tnm which would operate under itcl. I managed to get
scotty to build just fine; you need only add a couple of lines to scotty.c
in Tcl_AppInit():

if (Itcl_Init(interp) == TCL_ERROR) {
return TCL_ERROR;
}
#if (TCL_MAJOR_VERSION > 7) || (TCL_MINOR_VERSION > 4)
Tcl_StaticPackage(interp, "Itcl", Itcl_Init, (Tcl_PackageInitProc *)
NUL
L);
#endif

...and update the makefile to use the [incr tcl] include files and
libraries, and it pretty much just works fine.

I also was able to load this same Tnm extension into a suitably modified
version of expect (given and objectified version of expect with SNMP..)
with good success.

Running tkined, on the other hand, it a completely different matter.

After beating on it for a couple of evenings, the obvious finally dawned
on me - the :: syntax used in tkined interacts badly with the namespace
support in [incr tcl], and things Just Don't Work. I ran it using just
a plain wish, and that mostly works until the Tnm extension gets autoloaded
into the standard wish. The tclindex file was constructed using
[incr tcl], and has namespace syntax in it..

Oh well. I may have to build a paralled version of scotty/Tnm to use
with the "standard" wish. It's really sort of a shame, because the
primatives in [incr tcl] would seem to be a pretty good match for the
implementation approach used in tkined.

Oh, and just to restate the obvious: thanks again for such wonderful
software! It's really rather nifty, and I enjoy using it quite a bit.

Louis Mamakos