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,FREEMAIL_FROM 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 13:42:26 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!wn14feed!wn13feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "CheGueVerra" Newsgroups: comp.lang.ada References: Subject: Re: Getting valid Integer values !! X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Tue, 21 Oct 2003 16:27:18 -0400 NNTP-Posting-Host: 67.71.117.216 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1066768036 67.71.117.216 (Tue, 21 Oct 2003 16:27:16 EDT) NNTP-Posting-Date: Tue, 21 Oct 2003 16:27:16 EDT Organization: Bell Sympatico Xref: archiver1.google.com comp.lang.ada:1322 Date: 2003-10-21T16:27:18-04:00 List-Id: >Assuming you haven't got a prior "use Ada", for new code you >should call it "Ada.Text_IO" - "Text_IO" is listed as an "Obsolescent" >feature. I will change that >This is an "anonymous type" - generally considered bad (esp. for >exported things, not so bad when used localling within a subprogram). >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... > Why can't you use an exit? Specified in the homework ... otherwise I would have used it because that was the first way i tried it. I just arranged it, so that the boolean value "controls" the exit... My guess is that, they want to teach them ( I'm learning ada more than learning how to program) to control results better, thus not wanting : Cannot exit a loop while and for with an exit Cannot use goto Cannot have global variables 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 CheGueVerra