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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bff0c2e09500f856 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-05 00:07:08 PST From: "Dmitriy Anisimkov" Newsgroups: comp.lang.ada Subject: Re: How do I end the program? Date: Tue, 5 Feb 2002 13:39:56 +0600 Organization: A poorly-installed InterNetNews site Distribution: world Message-ID: References: NNTP-Posting-Host: 195.162.53.2 X-Trace: ns.omskelecom.ru 1012894757 2308 195.162.53.2 (5 Feb 2002 07:39:17 GMT) X-Complaints-To: usenet@ns.omskelecom.ru NNTP-Posting-Date: Tue, 5 Feb 2002 07:39:17 +0000 (UTC) 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 Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.gamma.ru!Gamma.RU!news2.aha.ru!news.rosprint.net!radius!not-for-mail Xref: archiver1.google.com comp.lang.ada:19626 Date: 2002-02-05T13:39:56+06:00 List-Id: > > GNAT.OS_Lib.OS_Exit. Is there a pure Ada alternative? > > No not really. One way of doing it is to define an exception... > > Quit_Program : Exception; > > then have a handler at the main program level.... > > exception > when Quit_Program => null; > end; > > Before you do that you can call Ada.Command_Line.Set_Exit_Status. You could not terminate programm this way from task. But the GNAT.OS_Lib.OS_Exit could.