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,b30e93507fcd6ed9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-02 08:04:11 PST Path: supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!nycmny1-snh1.gtei.net.MISMATCH!cpk-news-hub1.bbnplanet.com!cambridge1-snf1.gtei.net!news.gtei.net!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada Subject: Re: Ada'83 to Ada'95 Problem Date: Fri, 02 Mar 2001 11:03:59 -0500 Organization: AverStar (formerly Intermetrics) Burlington, MA USA Message-ID: <3A9FC46F.F7B53164@averstar.com> References: <3A9E35F3.EE64F602@port.ac.uk> NNTP-Posting-Host: nebula.burl.averstar.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: inmet2.burl.averstar.com 983549039 20363 141.199.8.77 (2 Mar 2001 16:03:59 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 2 Mar 2001 16:03:59 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:5378 Date: 2001-03-02T16:03:59+00:00 List-Id: dis00109 wrote: > > 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! There is no new feature of Ada 95 that would affect this behavior. It is possible that the compiler has a bug, but without a copy of the specific input and the specific exceptions raised, it is pretty hard to tell. The only new feature of Ada 95 affects using "get" for a floating point value. It sounds like you are using integer "get" and the semantics for that are not changed in Ada 95. The semantics for using "get" on floats in Ada 95 are a true extension, in that anything that was acceptable before is still accepted, but in addition, you can omit a 0 before or after the decimal point if it is not a significant digit. -- -Tucker Taft stt@avercom.net http://www.averstar.com/~stt/ Chief Technology Officer, AverCom Corporation (A Titan Company) Burlington, MA USA (AverCom was formerly the Commercial Division of AverStar: http://www.averstar.com/services/ebusiness_applications.html)