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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,98e6b29260f70dc7 X-Google-Attributes: gid103376,public From: Martin Dowie Subject: Re: Help!! program doesnt run, has 0 errors Date: 2000/08/16 Message-ID: <399A578C.D86BA2EF@gecm.com>#1/1 X-Deja-AN: 658852859 Content-Transfer-Encoding: 7bit References: <39991c02$0$17111@echo-01.iinet.net.au> <399920FE.556AD44F@Physik.Uni-Magdeburg.de> Content-Type: text/plain; charset=us-ascii X-Trace: 16 Aug 2000 09:54:36 GMT, stnp2658.stanmre.gecm.com MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-08-16T00:00:00+00:00 List-Id: On top of all that, I wouldn't describe user input not being in the required range as 'exception'al. Gerald Kasner wrote: > Damon Carter schrieb: > > > > I have written a get_valid_integer procedure that gets the input from the > > user, an integer between 1 and 40, > > I can't find any "Get" procedure in your code > > > then outputs to the user the number they > > have entered if it was within the correct range and if not then it raises a > > range_error and loops so the user can re-enter the number. > > Your procedure calls itself ??? have a closer look at this line ..... > > > When compiled the > > program has no errors but i cant get it to run.. can anyone help.. i have > > attached the source code thanx > > > > > Compiler ? switches ? platform ? > > Name: get_valid_integer.adb > > get_valid_integer.adb Type: Ohne Angabe (application/octet-stream) > > Encoding: x-uuencode > > I suggest to have a look at some Ada-book, Feldman&Koffman or Skansholm > > -Gerald