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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b971479ef2fe811a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-21 16:04:02 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!btnet-peer1!btnet-feed3!btnet-peer0!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Getting valid Integer values !! Date: Tue, 21 Oct 2003 23:04:00 +0000 (UTC) Organization: BT Openworld Message-ID: References: NNTP-Posting-Host: host81-129-50-50.in-addr.btopenworld.com X-Trace: hercules.btinternet.com 1066777440 6877 81.129.50.50 (21 Oct 2003 23:04:00 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Tue, 21 Oct 2003 23:04:00 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:1341 Date: 2003-10-21T23:04:00+00:00 List-Id: "CheGueVerra" wrote in message news:EEglb.1917$VQ3.243794@news20.bellglobal.com... > >You should declare a 'subtype' for this range. > > In my homework I do declare a subtype for it, I just didn't for the test... Good Also, for literals you should use '_' for such large numbers, e.g. 1_000_000 not 1000000 > Cannot exit a loop while and for with an exit > Cannot use goto > Cannot have global variables And so another 'programmer invented flag' hits the coding sheets... ...my old JSP teacher would be spinning! If you are also write a criteque of this, you can tell your prof, that 'exit' is the mechanism of choice in such circumstances for Ada users (and always has been). > > That's why I'm not taking a chance and using the exit in the loop, the > teacher might just see the exit and I'll loose points, and the homework is > already late ;), but almost finished, I'm testing and installing data > cheking Fair enough