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,f92fbb4a0420dd57 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: some questions re. Ada/GNAT from a C++/GCC user Date: 1996/04/01 Message-ID: #1/1 X-Deja-AN: 145272158 references: <4jhe1v$m0g@dayuc.dayton.saic.com> <4jp17p$17vn@watnews1.watson.ibm.com> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-04-01T00:00:00+00:00 List-Id: In article <4jp17p$17vn@watnews1.watson.ibm.com>, Norman H. Cohen wrote: >Jean Ichbiah correctly saw the chaos that could result from approach (b). I agree. >He chose approach (c) for an exception occuring while the child task was >still elaborating the declarative part of its task body and (a) for an >exception occuring once the child task entered the sequence of statements >of its task body. IMHO, he should have chosen approach (c) for all exceptions. A master awaits its dependent tasks before continuing. This would be the perfect place to raise Tasking_Error if the dependent task(s) raise unhandled exceptions. Instead, the dependents silently disappear, like Ms. Rigby, and then the parent task continues merrily on its way. >... (Anyone who has debugged a >program in which a task raised an unhandled exception has quickly learned >the value of adding a handler such as > > when others => > Display_Error_Message > ("Task of type XYZ abandoned due to unhandled exception."); > >to each task body.) Yes. Debugging these things is a nightmare, otherwise, because the problem is not localized. - Bob