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!news.bbs-scene.org!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 09 Aug 2013 18:21:27 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: 4 beginner's questions on the PL Ada Date: Fri, 09 Aug 2013 19:21:31 -0400 Organization: IISS Elusive Unicorn Message-ID: References: <87ob96ajv6.fsf@VLAN-3434.student.uu.se> X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 108.68.178.245 X-Trace: sv3-Ueb2XiMKZnmiQCjt4e7HS4ok7gV/XtQfaNhrNVszg1QLkpQNLeJkQo6CrMSnqH5lu2vpM/wtQc626pW!dUbj5/XutJVrs5qCReuDU6V/5ROqqc3iBH++zTAT3uicYjPzSwwUxre+VIBY7z/bW92JtT5BenqI!OUGExby0AQQ1rKIbI2FuFie/rPbb X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2844 Xref: news.eternal-september.org comp.lang.ada:16752 Date: 2013-08-09T19:21:31-04:00 List-Id: On Fri, 09 Aug 2013 18:50:53 +0200, Emanuel Berg declaimed the following: >1. How do you make a constant in Ada? Can I make one that is >computed, for example an integer, set to Milliseconds(something)? > http://www.adaic.org/resources/add_content/standards/12rm/html/RM-3-3-1.html >2. How do you get options from the CL? I.e., how do you do the C >argv in Ada? http://www.adaic.org/resources/add_content/standards/12rm/html/RM-A-15.html > >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. What do you consider a task name? Since you can declare task /types/, and then create instances of the type are you asking for the /type/ name (which would be the same for all instances) or the "variable" name -- which may vary depending upon where in the code one is (if a task instance is somehow passed to a procedure is it supposed to display the name by which it was instantiated, or the name by which it is being accessed in the procedure). http://www.adaic.org/resources/add_content/standards/12rm/html/RM-C-7-1.html > >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!") > http://www.adaic.org/resources/add_content/standards/12rm/html/RM-9-8.html IOWs, it is all there in the reference manual. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/