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!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: comp.lang.ada,comp.realtime Subject: 4 beginner's questions on the PL Ada Followup-To: comp.lang.ada Date: Fri, 09 Aug 2013 18:50:53 +0200 Organization: Aioe.org NNTP Server Message-ID: <87ob96ajv6.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: SWN/nubmpQxYKwY7hPy4YA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:idX+NraLrRn8Jld01MyrPy5k0nM= Xref: news.eternal-september.org comp.lang.ada:16720 comp.realtime:314 Date: 2013-08-09T18:50:53+02:00 List-Id: 1. How do you make a constant in Ada? Can I make one that is computed, for example an integer, set to Milliseconds(something)? 2. How do you get options from the CL? I.e., how do you do the C argv in Ada? 3. Is it possible to get the task *name* (from the code) into a string, programatically? That way, a generic procedure could be used to communicate from tasks, with Put_Line, and without having to hard code the task name every time. 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!") Cheers -- Emanuel Berg - programmer (hire me! CV below) computer projects: http://user.it.uu.se/~embe8573 internet activity: http://home.student.uu.se/embe8573