Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!yale!mintaka!bloom-beacon!eru!luth!sunic!mcsun!ukc!icdoc!qmw-cs!jeremyr From: jeremyr@cs.qmw.ac.uk (Jeremy Roussak) Newsgroups: comp.sys.mac.programmer Subject: Re: Breaking out of a series of routines Message-ID: <2491@sequent.cs.qmw.ac.uk> Date: 10 Jul 90 08:14:49 GMT References: <25526@cs.yale.edu> Reply-To: jeremyr@cs.qmw.ac.uk (Jeremy Roussak) Organization: Computer Science Dept, QMW, University of London, UK. Lines: 11 In article <25526@cs.yale.edu> tarr-michael@CS.Yale.EDU (michael tarr) writes: > >On an error condition I wish to immediately stop processing a large file >and break out of about 10 routines that have been calling each other and >return to my main event loop. Is there any way to do this without >passing and error flag to each of the calling routines? You could use signals, which are described in TechNote 88. They are provided for just this purpose. Jeremy Roussak