From: "Bennett, Chip (KTR) ~U" <BennettC@J64.STRATCOM.AF.MIL>
Subject: Re: ADA error message ...
Date: Mon, 21 Nov 1994 13:40:00 PST
Date: 1994-11-21T13:40:00-08:00 [thread overview]
Message-ID: <2ED11400@SMTPGATE2.STRATCOM.AF.MIL> (raw)
908mangla@WMICH.EDU (Usman) writes:
> The following is a .LIS file from an ADA compilation. Can someone explain
the
> error occuring at line 42.
>
> ... (source deleted)
>
You use of Text_IO.Get with a floating point type requires the instantiation
of a generic:
package My_Float_IO is new Text_IO.Float_IO (Float);
use My_Float_IO;
Numeric types can be anything (temperature, class_avg, etc). Float is just
the one provided. In other words, if you had declared a floating type like
the following:
type Temperature is digits 6;
...
package Temp_IO is new Text_IO.Float_IO (Temperature);
use Temp_IO;
You could then use "Get" with type "Temperature".
(Be sure and give me credit on your homework assignment :-) )
*****************************************************************
* Chip Bennett, GDE Systems Inc | BennettC@j64.stratcom.af.mil *
* USSTRATCOM/J64213 | Voice (402)294-7360 *
* 901 SAC Blvd, Suite 2B24 | FAX (402)294-7912 *
* Offutt AFB, NE 68113-6600 | Proud member of Team Ada *
* Opinions expressed here are my own _so_, TTFWTW *
*****************************************************************
Thanks, Usman
Date: Sun, 20 Nov 1994 15:20:16 EDT
From: 908mangla@WMICH.EDU
Subject: ADA error message ...
The following is a .LIS file from an ADA compilation. Can someone explain
the
error occuring at line 42.
Thanks, Usman
next reply other threads:[~1994-11-21 21:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-11-21 21:40 Bennett, Chip (KTR) ~U [this message]
-- strict thread matches above, loose matches on Subject: below --
1994-12-05 18:42 ADA error message Bering
1994-12-06 8:55 ` Ross Mather
1994-11-20 19:20 908mangla
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox