Re: Tcl Workshop

Juergen Schoenwaelder (schoenw@gaertner.de)
Mon, 28 Apr 1997 18:45:24 +0200

Robert_Seeger@BayNetworks.COM (Robert Seeger) said:

Robert> I building a shell that has to use both scotty and
Robert> itcl. Unfortunately, I've run into the following problem:

Robert> - Scotty needs control of the main tcl source in order to
Robert> control the timing loop

Robert> - Itcl needs control of the main tcl source in order to add
Robert> namespaces

I am not sure what you mean here. Scotty is not doing anything special
with the Tcl sources. The only thing which scotty does different from
the standard tclsh is that scotty is per default in an event
processing loop. (There have been several requests to John Ousterhout
to make tclsh event driven per default, but until now he could not be
convinced.)

Anyway, you can load the Tnm extension in the standard non-event
driven tclsh. This will give you a slightly different behaviour, until
you fall into the Tcl event loop by doing "vwait forever" or something
similar.

I do not see a reason why this should not also work with itcl. What
happens if you startup itcl and type "package require Tnm"? If you
don't get an error here, just use itcl and force the interpreter into
the event loop as described above.

(Note, this response might be a complete mis-understanding of the
problem because I never used itcl.)
Juergen

-- 
Juergen Schoenwaelder     <schoenw@gaertner.de>     (Tel: +49-531-23873-0)
Gaertner Datensysteme, Hamburger Strasse 273a, 38114 Braunschweig, Germany
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.