On Friday 06 June 2003 17:35, Don Baccus wrote:

> Right, if you skip the traces you don't get the module-defined ns_*
> commands, we're on the same page here ... as far as this bit goes anyway.

After thinking again and again, I see two possible scenarios.
One thing upfront: I'd like to have *both* of the ns_eval behaviours
available: the older one (as in 3.x) and the new " interp sync" mode.
This is my target.
To achieve this, there are couple of possibilitites. I'd present
two of them for the discussion.

First one is to move "ns_eval" to C-level since there we have
access to the ns_* specific initialization of Tcl interps.
The command syntax would be changed (backward-compatible)
to read:

    ns_eval ?-syncinterps --? arg ? ... arg?

where "-syncinterps" would actually replicate the state of the
current interp to all other interps in the process (new behaviour).
BTW, everybody is welcome to suggest better option name :)
W/o the option, command would do what ns_eval did in 3.x,
so older scripts are happy.

Second one is to add new command "ns_interp" and do some
wrapping of Tcl "interp" command so it can create ns_*
instrumented interpreters. This way we can implement the
ns_eval in Tcl alone, possibly with the same syntax as above.

Well, either of those will lead to solution. The second option
allows for more flexibility. The first is simpler to implement.

Thoughts?

Zoran


--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list: http://www.aolserver.com/listserv.html
List information and options: http://listserv.aol.com/

Reply via email to