home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!karl
- From: karl@NeoSoft.com (Karl Lehenbauer)
- Subject: Re: Aborting command interpreting
- Organization: NeoSoft Communications Services -- (713) 684-5900
- Date: Thu, 19 Nov 1992 20:15:20 GMT
- Message-ID: <BxzC9o.967@NeoSoft.com>
- References: <1992Nov19.173522.20259@novell.com>
- Lines: 16
-
- In article <1992Nov19.173522.20259@novell.com> Duane Murphy <damurphy@wc.novell.com> writes:
- >I am looking for a clean way of being able to abort the Tcl interpreter
- >while it is interpreting a script. ...
-
- >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?
-
- Extended Tcl has signal trapping. You normally get a stack backtrace and
- error exit, although it can be caught with "catch". The signal command
- (From extended tcl, do a "help extended/signal") will let you ignore signals,
- get the default action, trap them where a specified routine is called as soon
- as it is safe to do so, or get the catchable error generated.
- --
- -- Email info@NeoSoft.com for info on getting interactive Internet access.
- "Turn on your hot tub by email now. Ask me how."
-