comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitriy Anisimkov" <anisimkov@yahoo.com>
Subject: Re: How do I end the program?
Date: Tue, 5 Feb 2002 13:39:56 +0600
Date: 2002-02-05T13:39:56+06:00	[thread overview]
Message-ID: <a3o275$284$1@ns.omskelecom.ru> (raw)
In-Reply-To: dale-BC7C6B.13521905022002@news.rmit.edu.au

> > 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.





  parent reply	other threads:[~2002-02-05  7:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-04 23:15 How do I end the program? David Starner
2002-02-05  3:52 ` dale
2002-02-05  6:17   ` Simon Wright
2002-02-05  7:39   ` Dmitriy Anisimkov [this message]
2002-02-05 12:35 ` David C. Hoos
2002-02-05 13:26 ` Stephen Leake
2002-02-06  3:16 ` Steve Doiel
2002-02-06  7:46   ` Dale Stanbrough
2002-02-06  8:40     ` Martin Dowie
2002-02-06 17:55     ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox