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.8 required=5.0 tests=BAYES_50,HK_RANDOM_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ce37dd019a007e9a,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-10 13:52:46 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: cptnben@gisco.net (Ben) Newsgroups: comp.lang.ada Subject: Incompatible type error handling Date: 10 Dec 2001 13:52:46 -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 1008021166 4321 127.0.0.1 (10 Dec 2001 21:52:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 10 Dec 2001 21:52:46 GMT Xref: archiver1.google.com comp.lang.ada:17718 Date: 2001-12-10T21:52:46+00:00 List-Id: Hi, I am new to Ada and the instruction book I found is not really helpful in explaining how to handle errors of unmatching types. For example, one of the sample problems the book has me do it a simple calculator made to work with real values. Say I programmed it to work only with integers, yet I enter a real number. That will cause a problem, right? Is the error handling automatic in Ada, or do I need to code something in. So far I have been unsuccessful at finding example code and instructions on how to do this. Thanks, Ben