I am trying to adapt the Jacl Shell to work in TclBlend.  The changes
involve moving the command line processing logic from the ConsoleThread's
run() method into the ConsoleEvent class's processEvent() method so that
only the interpreter thread is calling any Interp class's methods.    

The Jacl Shell, tcl.lang.Shell, also uses the Channel, StdChannel, and TclIO
classes in Jacl to print characters to the screen.  TclBlend does not have
those two classes.  Now, I see three options to make this work:

1. add Channel, StdChannel, TclIO to TclBlend
2. use the same Shell for both Jacl and TclBlend, make the Shell use
java.lang.System.out and java.lang.System.err instead of tcl.lang.StdChannel
3. TclBlend use a separate Shell from Jacl, TclBlend Shell uses System.out,
Jacl Shell uses StdChannel.

I don't like option 1 because those Jacl specific classes don't do anything
other than supporting the Shell in TclBlend.  What do people think?  Any
preferences?

-- Jiang Wu
   [EMAIL PROTECTED]


----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com

Reply via email to