Calling ined from tkined's context

Brian Topping (topping@mauswerks.com)
Mon, 15 Jul 1996 15:35:04 -0700

[This is probably best answered by Juergen, but I'll post it here
anyways.]

I have made some changes to tkined that when the tkined.defaults file is
opened, instead of only allowing interpreter[1-n] in the file, I allow
interpreter0 also, which 'source's the corresponding tcl file into the
existing interpreter. This allows more complicated GUI to be presented
then can be done via ined since I now have access to tk.

This is working well and I am able to bring up Tix widgets from within
module-based code loaded via tkined.defaults.

What I am running into now is that I would like to be able to get the
best of both worlds, specifically use of the ined log windows, but can't
since ined seems to be tcl functionality that only lives in the scotty
interpreter context(s).

I have been staring at objects.c for a while and fathomed that I could
call 'LOG create' from within the tkined context, but soon realized
there is a lot of object post-processing that happens in the call
through ined() and that I wasn't doing that with my simple test of it.

So what I am wondering is whether this has been done before, if so how,
and if not, does it sound reasonable to do a Tcl_CreateCommand for
calling ined from within the tkined context? I suspect that it is, what
I am wondering is whether there is some massive disconnect in here that
I will only find after completing the code.

Thanks!

-B

p.s. If anyone is interested in the diffs or discussing them, feel free
to write.