Re: concurrend tcl evaluation
- From: Don Porter <dgp@xxxxxxxxxxxxxx>
- Date: 4 Aug 2005 15:37:37 GMT
MartinLemburg@UGS wrote:
> How does the tcl interpreter work, that he doesn't become confused of
> working on a script, and than suddenly he has to evaluate something
> different, to come back afterwards to continue evaluating the script?
The routines Tcl_SaveResult() / Tcl_RestoreResult() are used
appropriately to keep "concurrent" uses of a Tcl_Interp from
stomping on each other.
Note that code written for Tcl 8.5 should prefer to use
Tcl_SaveInterpState() / Tcl_RestoreInterpState().
> Can this "concurring" tcl evaluations influence each other?
If third-party C code fails to use the above routines properly, yes.
That's a bug that would need fixing.
--
| Don Porter Mathematical and Computational Sciences Division |
| donald.porter@xxxxxxxx Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
.
- Follow-Ups:
- Re: concurrend tcl evaluation
- From: MartinLemburg@UGS
- Re: concurrend tcl evaluation
- References:
- concurrend tcl evaluation
- From: MartinLemburg@UGS
- concurrend tcl evaluation
- Prev by Date: Re: Tcl C pass by reference
- Next by Date: Re: Expect timeout problem after matching the prompt.
- Previous by thread: concurrend tcl evaluation
- Next by thread: Re: concurrend tcl evaluation
- Index(es):
Relevant Pages
|