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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b30e93507fcd6ed9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-01 06:32:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!freenix!fr.clara.net!heighliner.fr.clara.net!grolier!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Ada'83 to Ada'95 Problem Date: Thu, 1 Mar 2001 09:19:55 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <97llrp$4mn$1@nh.pace.co.uk> References: <3A9E35F3.EE64F602@port.ac.uk> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 983456441 4823 136.170.200.133 (1 Mar 2001 14:20:41 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 1 Mar 2001 14:20:41 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: supernews.google.com comp.lang.ada:5352 Date: 2001-03-01T14:20:41+00:00 List-Id: Yes, this is a difference between Ada83 & Ada95. People complained that Text_IO was too unforgiving when reading numeric values. One possible solution is to read in the line as a string and scan the string for correct input before reading the Integer from the string. In real world software that requires keyboard input, you almost invariably go to some form of parsing your own input characters because inevitably, language-supplied features never do all the things you want them to do... MDC "dis00109" wrote in message news:3A9E35F3.EE64F602@port.ac.uk... > I am trying to get a program to accept two integers as input by the user > (for a university project) however in the exception handling section of > my program it will not accept a float input as an error it merely > ignores everything after the decimal point. This would appear to be a > new feature in Ada'95, can anyone think of a way to solve this...PLEASE! > -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/