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.9 required=5.0 tests=BAYES_00,HK_RANDOM_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f19c6c58ce93435,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-10 16:34:15 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: cptnben@gisco.net (Ben) Newsgroups: comp.lang.ada Subject: Error checking for type incompatibility Date: 10 Dec 2001 16:28:15 -0800 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 24.169.107.241 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1008030495 8265 127.0.0.1 (11 Dec 2001 00:28:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 11 Dec 2001 00:28:15 GMT Xref: archiver1.google.com comp.lang.ada:17727 Date: 2001-12-11T00:28:15+00:00 List-Id: 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. 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. Thanks, Ben