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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4438af6225b2af65 X-Google-Attributes: gid103376,public From: jpt@diphi.demon.co.uk (JP Thornley) Subject: Re: Real time Java? Huh? Date: 1998/11/09 Message-ID: <442072839wnr@diphi.demon.co.uk>#1/1 X-Deja-AN: 410039490 References: <363E1DE8.4189EBAC@solaris.ok> <364024f5.3575731@news.demon.co.uk> <364071C4.619D@world.std.com> <3641ca4b.23637018@news.demon.co.uk> <3641B718.DBF4C37C@tisny.com> <36431ca0.301400410@news.netcomuk.co.uk> <364224FB.7FCF@world.std.com> <71tpsr$hva$1@supernews.com> <36427517.27089188@news.nmia.com> <36428b55.0@blushng.jps.net> <3642a327.38883600@news.nmia.com> <71vhli$hul$1@nnrp1.dejanews.com> X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!post-11.mail.demon.net!post.mail.demon.net![158.152.212.133] X-Trace: mail2news.demon.co.uk 910640356 mail2news:4327 mail2news mail2news.demon.co.uk Organization: None Reply-To: jpt@diphi.demon.co.uk Newsgroups: comp.lang.ada Date: 1998-11-09T00:00:00+00:00 List-Id: In article: <71vhli$hul$1@nnrp1.dejanews.com> oopster@my-dejanews.com writes: > > Is it still the case that Ada exceptions are to be avoided for real-time? > Not a good thing if true... > For high-integrity Ada, I've always been fascinated by the existence of the two opposed camps on exceptions - one group taking the view that having exceptions in the language makes it *more* suitable for high-integrity applications and the other regarding them as, not quite the work of the devil, but definitely not something that self-respecting software engineers would want to get involved with. The Annex H Rapporteur Group spent a long time discussing the appropriate advice to give for exceptions in the (currently Draft) "Guide for the Use of the Ada Programming Language in High Integrity Systems" with the result that it describes three different approaches:- 1. Catch and handle all exceptions locally - so there is no exception propagation; program state must be well-defined after the handler has executed. 2. Use a single catch-all handler at the top level that makes almost no assumptions about program state - it probably does a restart. 3. Prove that no run-time errors can occur (so code can be compiled with all checks suppressed). [But you often still include the 'catch-all' handler to cope with hardware glitches/memory corruptions.] Phil Thornley -- ------------------------------------------------------------------------ | JP Thornley EMail jpt@diphi.demon.co.uk | | phil.thornley@acm.org | ------------------------------------------------------------------------