home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!ornl!sunova!linac!uwm.edu!cs.utexas.edu!wupost!darwin.sura.net!sgiblab!newsun!news
- From: Duane Murphy <damurphy@wc.novell.com>
- Subject: Aborting command interpreting
- Message-ID: <1992Nov19.173618.20335@novell.com>
- X-Xxdate: Thu, 19 Nov 92 17:40:34 GMT
- Sender: news@novell.com (The Netnews Manager)
- Nntp-Posting-Host: 130.57.72.123
- Organization: Novell, Inc.
- X-Useragent: Nuntius v1.1.1d12
- Date: Thu, 19 Nov 1992 17:36:18 GMT
- Lines: 17
-
- I am looking for a clean way of being able to abort the Tcl interpreter
- while it is interpreting a script. I have looked at CreateTrace, but
- there does not seem to be a way of telling the interpreter to stop
- interpreting. I have been able to do this by hacking Tcl_Eval, but I
- would like a clean way of doing this.
-
- I have thought of some cheating ways that involve using the internal
- structure of the interpreter and not the publish public structure.
-
- The idea is to have a clean way of aborting exceptionally long scripts or
- (heaven forbid) a script that has an (non-recursive) endless loop. The
- idea would be to force the execution of a particular command to return an
- error. This (usually) causes the script to stop.
-
- Any ideas, comments, suggestions?
-
- ...Duane
-