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,3f1374bc66d2dc03 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.kolumbus.fi!nntp.inet.fi!central1.inet.fi!inet.fi!read3.inet.fi.POSTED!53ab2750!not-for-mail Sender: AWI003@FIW9430 Newsgroups: comp.lang.ada Subject: Re: creating an array References: <1139897171.996297.230070@z14g2000cwz.googlegroups.com> <1139951664.264622.240870@z14g2000cwz.googlegroups.com> <1139955455.397334.310790@g43g2000cwa.googlegroups.com> <878xsd8sqq.fsf@ludovic-brenta.org> <1139957691.430522.159580@o13g2000cwo.googlegroups.com> <874q318rkd.fsf@ludovic-brenta.org> <1139960269.338824.166090@g14g2000cwa.googlegroups.com> From: Anders Wirzenius Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 15 Feb 2006 07:45:17 GMT NNTP-Posting-Host: 194.251.142.2 X-Complaints-To: abuse@inet.fi X-Trace: read3.inet.fi 1139989517 194.251.142.2 (Wed, 15 Feb 2006 09:45:17 EET) NNTP-Posting-Date: Wed, 15 Feb 2006 09:45:17 EET Organization: Sonera corp Internet services Xref: g2news1.google.com comp.lang.ada:2901 Date: 2006-02-15T07:45:17+00:00 List-Id: "isaac2004" writes: > sorry havent learned that far yet, but i cant seem to get your code to > work by itself, it throws a error about a loop where the first if > statement is. oh well it wasnt tested but i would like ot see a running > program of that if possible. > > happy coding ! > Quick and dirty just to get it running: Correct the spelling error: end if; -> end loop; you have to instantiate the Ada.Text_IO.Integer_IO: package Anders is new Ada.Text_IO.Integer_IO (Integer); and then use your new package: Anders.Get (Expected_Number_Of_Digits); If the operator "not" is not defined, change the if statement to: if ... then null; else ...; end if; Good luck! -- Anders