From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,790d824907970cc3 X-Google-Attributes: gid103376,public From: "R. Tim Coslet" Subject: Re: Exception Propagation Date: 1999/06/08 Message-ID: <375DD26B.7640D57F@kaisere.com>#1/1 X-Deja-AN: 487325255 Content-Transfer-Encoding: 7bit References: <7jh857$ej$1@nnrp1.deja.com> <375CC549.7EDFB885@spam.com> <7jk1c1$t8$1@nnrp1.deja.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.snfc21.pbi.net 928895114 206.170.2.69 (Tue, 08 Jun 1999 19:25:14 PDT) Organization: SBC Internet Services MIME-Version: 1.0 NNTP-Posting-Date: Tue, 08 Jun 1999 19:25:14 PDT Newsgroups: comp.lang.ada Date: 1999-06-08T00:00:00+00:00 List-Id: No, he means something like... task body T is ... begin ... -- Do one time task "setup" code here. loop ... -- Do task "setup" code needed to "restart" here. begin ... -- Main body of task. exception when others => ... -- Do "exception recovery & reporting" code here. end; end loop; end T; This task can not be terminated by any exception, it just "restarts" at the loop. The "exception recovery & reporting" code might be null. R. Tim Coslet Matthew Heaney wrote: > Robert Dewar writes: > > > I would have preferred that an unhandled exception in a task > > caused termination of the entire program, you can always get > > the bizarre effect in the RM if you really want it by doing: > > > > exception when others => null; > > > > at the outer level of a task > > I don't understand this comment. > > Given this task body: > > task body T is > ... > begin > ... > exception > when others => null; > > end T; > > Are you saying that if an exception occurs, that that exception handler > will cause behavior other than silent termination of task T?