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,f19c6c58ce93435 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-10 23:35:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.bredband.com!bredband!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Error checking for type incompatibility Date: Tue, 11 Dec 2001 07:35:01 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1008056101 19746 129.241.83.82 (11 Dec 2001 07:35:01 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Tue, 11 Dec 2001 07:35:01 +0000 (UTC) User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com comp.lang.ada:17734 Date: 2001-12-11T07:35:01+00:00 List-Id: On 10 Dec 2001 16:28:15 -0800, Ben wrote: > Hi, > I am new to Ada. I decided I would try to learn a new language and Ada > seemed like a fun project. I got a few books, and one of them has > challenge problem where I am supposed to do some error checking on > input. This includes checking to make sure that the input type is > correct. More specifically: the program is supposed to accept only > integer values. So I need to be able to have an error handler that > will recognize if someone tries to enter a noninteger value and ask > them to re-enter a correct value. Since this is a "challenge problem" > they are not giving me alot to work on here. I checked another book, > and it had some examples on error handling, but not at the level I > need. And neither book had any example code that was helpful. One way is to use: http://www.it.bton.ac.uk/staff/je/adacraft/ch07.htm > Remember, I'm new to Ada (from the C++ world) so packages are new to > me. What do I need folks. Your help is greatly appreciated. Perhaps you should read more before you try this problem. Which book is it by the way? Preben -- () Join the worldwide campaign to protect fundamental human rights. '||} {||' http://www.amnesty.org/