home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!ames!agate!usenet.ins.cwru.edu!slc6!trier
- From: trier@slc6.ins.cwru.edu (Stephen C. Trier)
- Newsgroups: comp.lang.tcl
- Subject: Re: Destroying interpreters
- Date: 16 Dec 1992 16:51:04 GMT
- Organization: Case Western Reserve University, Cleveland OH (USA)
- Lines: 15
- Message-ID: <1gnmpoINN65r@usenet.INS.CWRU.Edu>
- References: <1992Dec10.230322.20829@cpu.com>
- NNTP-Posting-Host: slc6.ins.cwru.edu
-
- I solved this problem (on MS-DOS) with an ugly hack: The interpreter
- that wants to die sets a flag (in C) that says "terminate this interpreter".
- The main program loop (in C) periodically checks these flags and kills
- any interpreters that need to terminate.
-
- I ended up using this flag as a chance to kill the window associated with
- the interpreter, too. I could have used an interpreter-destruction callback,
- but it seemed pointless when I couldn't destroy the interpreter from within
- itself.
-
- --
- Stephen Trier "We want to offer you a price that you
- Network software type just can't afford to take advantage of."
- Case Western Reserve University - Sales blurb from HSC Software
- trier@ins.cwru.edu
-