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-15 00:38:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin D. Condic" Newsgroups: comp.lang.ada Subject: Re: stupid question: how can I finish a program? Date: Wed, 14 Aug 2002 09:56:57 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <3D59BB4C.AA21BDA@despammed.com> NNTP-Posting-Host: dhcp-200-180.miami.pace.co.uk X-Trace: nh.pace.co.uk 1029333419 20564 136.170.200.180 (14 Aug 2002 13:56:59 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 14 Aug 2002 13:56:59 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:28051 Date: 2002-08-14T13:56:59+00:00 List-Id: Not really. It works for single threaded programs, but not for multi threaded programs. Try it with tasks. Try having one task determine that the whole program should shut down. There is no "shoot this process in the head right this instant and I really mean it!" instruction in Ada. Not a "standard" one, at least. Not one that will work with all possible Ada programs. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling Digital. Our Vision is to be the biggest supplier worldwide of digital gateway technology. www.pacemicro.com "Wes Groleau" wrote in message news:3D59BB4C.AA21BDA@despammed.com... > > This has been in Ada all along. > > 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. > > -- > Wes Groleau > http://freepages.rootsweb.com/~wgroleau