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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: 4 beginner's questions on the PL Ada Date: Fri, 09 Aug 2013 19:35:23 +0100 Organization: A noiseless patient Spider Message-ID: References: <87ob96ajv6.fsf@VLAN-3434.student.uu.se> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="ab63a21f76991e88ee5b3b5ea015b144"; logging-data="18890"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187wuwXsMPeNvVyugX1sAZhl+T7AqqYUkA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:nbo+hZkJzXrQe39YStlk6r5mn/0= sha1:yn6km1DAGTPh0s2QJh/SZPXAYSI= Xref: news.eternal-september.org comp.lang.ada:16729 Date: 2013-08-09T19:35:23+01:00 List-Id: Emanuel Berg writes: > 4. How do you exit Ada altogether? For example, if there are 3 tasks, > and one solves the problem, how can I terminate the whole application > at once? (Rather than sending messages to all the tasks, "OK, we're > done looking!") One way is to abort the environment task[1], but as the reference says "This approach to task termination is not recommended because it does not allow tasks to terminate in a known state." If that's not a problem, though ... [1] http://rosettacode.org/wiki/Program_termination#Ada