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: Robert Dewar Subject: Re: Exception Propagation Date: 1999/06/09 Message-ID: <7jlful$g3p$1@nnrp1.deja.com>#1/1 X-Deja-AN: 487430884 References: <7jh857$ej$1@nnrp1.deja.com> <375CC549.7EDFB885@spam.com> <7jk1c1$t8$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x33.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Wed Jun 09 10:33:56 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; 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? No -- I am saying that I would have preferred semantics where if an exception is unhandled in a task, the entire program is terminated (as for an unhandled exception in the environment task). Then if you want the current RM semantics of tasks going away silently, you program it explicitly as shown above, though once you are forced to program this explicitly, you may well get the feeling that "null" is NOT the best choice of code to write here :-) Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.