comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: Ada'83 to Ada'95 Problem
Date: Fri, 02 Mar 2001 11:03:59 -0500
Date: 2001-03-02T16:03:59+00:00	[thread overview]
Message-ID: <3A9FC46F.F7B53164@averstar.com> (raw)
In-Reply-To: 3A9E35F3.EE64F602@port.ac.uk

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)



  parent reply	other threads:[~2001-03-02 16:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-01 11:43 Ada'83 to Ada'95 Problem dis00109
2001-03-01 14:19 ` Marin David Condic
2001-03-01 14:27 ` John English
2001-03-01 18:23 ` Ted Dennison
2001-03-01 19:29 ` Singlespeeder
2001-03-02 16:03 ` Tucker Taft [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-03-01 17:39 Beard, Frank
2001-03-05 13:51 ` John English
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox