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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6ee8ca03c176d76 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-14 12:37:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: stupid question: how can I finish a program? Date: 14 Aug 2002 20:18:52 +0100 Organization: Pushface Sender: simon@smaug Message-ID: References: <3D59BB4C.AA21BDA@despammed.com> NNTP-Posting-Host: pogner.demon.co.uk X-NNTP-Posting-Host: pogner.demon.co.uk:62.49.19.209 X-Trace: news.demon.co.uk 1029353714 nnrp-14:28371 NO-IDENT pogner.demon.co.uk:62.49.19.209 X-Complaints-To: abuse@demon.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: archiver1.google.com comp.lang.ada:28029 Date: 2002-08-14T20:18:52+01:00 List-Id: Wes Groleau writes: > If there is no exception handler, the program terminates. > > If the only exception handler is at the top level, > the program terminates after executing the handler. > > If there is a lower-level exception handler, you convert > to one of the above situations by adding "raise;" > to the handler. This is only true if there are no tasks (apart from the environment task) involved. procedure Term is task T; task body T is begin delay 5.0; end T; begin raise Constraint_Error; end Term; returns you to the command prompt after 5 seconds. smaug[4]$ time ./term raised CONSTRAINT_ERROR : term.adb:8 real 0m5.145s user 0m0.000s sys 0m0.000s