Am 23.05.22 um 03:02 schrieb
saito...@gmail.com:
> Hello,
>
> I have a question on the internal processing of command pipes in Tcl.
> When you open a command pipe via [open "|..."' r+] and run a tcl script,
What's your reason to run another Tcl script by this kind of "forking"?
Why do you not simply "source otherscript.tcl" to run it?
I can think of the following reasons:
- If it is to achieve true concurrency, then checkout the package Thread.
- If you just need isolation between both scripts, i.e. not to confuse
variable names, use namespaces or an object system like TclOO or snit.
- If it is for partially untrusted user scripts, use slave interpreters.
Christian