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, MSGID_RANDY 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: dennison@telepath.com Subject: Re: Exception Propagation Date: 1999/06/09 Message-ID: <7jluvt$lfr$1@nnrp1.deja.com>#1/1 X-Deja-AN: 487495770 References: <7jh857$ej$1@nnrp1.deja.com> <375CC549.7EDFB885@spam.com> <7jk1c1$t8$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x41.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed Jun 09 14:50:41 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-06-09T00:00:00+00:00 List-Id: In article , 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? I think you missed the subjunctive clause. He's talking about a hypothecital scheme where termination of an Ada task via an unhandled exception causes the entire program to terminate, not actual Ada. In such a scheme, the *current* behavior of Ada programs (silent termination) could be achieved by the code above. The only way I can think of to implement Matt's suggestion would be to indeed raise the exception in the parent task (in a non-determinstic location) when a child task is terminated by it, as in my hypothetical TERD language. :-) -- T.E.D. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.