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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,782af4edeb84c4b7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 19 Oct 2006 18:29:31 +0200 From: Gautier User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: basic basic ada question References: <1161268231.345231.242170@m73g2000cwd.googlegroups.com> <1qy643kz9ktss$.12j6z88wjcte2$.dlg@40tude.net> <1161272720.704725.208180@e3g2000cwe.googlegroups.com> In-Reply-To: <1161272720.704725.208180@e3g2000cwe.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 85.2.24.98 X-Original-NNTP-Posting-Host: 85.2.24.98 Message-ID: <4537a7d7$1_5@news.bluewin.ch> X-Trace: news.bluewin.ch 1161275351 85.2.24.98 (19 Oct 2006 18:29:11 +0200) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!204.127.204.224.MISMATCH!wns14feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news2.google.com comp.lang.ada:7047 Date: 2006-10-19T18:29:31+02:00 List-Id: markww: > Ok, am I understanding this correctly - if I just '#include" the > command line package: > > with Ada.Command_Line; use Ada.Command_Line; > > then the package defines the functions: > > function Argument_Count return Natural; > function Argument (Number : in Positive) return String; > > for me which I can use from then on? The effect will be that. Just, the "with" has a lot more stronger sense than inserting lines with #include. > So in my little app I can just use them like: > > Number_Of_Elements := Argument(0); > > (assuming the 0th argument is the # of elements to allocate...) > > Thanks; It is Argument(1) indeed - the argument number one. As a hint, the function Argument takes a positive value. HTH, Gautier ______________________________________________________________ Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!