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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a5e7ffb6489bae15 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-11-22 01:16:42 PST Path: nntp.gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!uni-regensburg.de!fauern!news.th-darmstadt.de!terra.wiwi.uni-frankfurt.de!zeus.rbi.informatik.uni-frankfurt.de!news.dfn.de!swiss.ans.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.mathworks.com!zombie.ncsc.mil!paladin.american.edu!auvm!J64.STRATCOM.AF.MIL!BennettC Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU Newsgroups: comp.lang.ada Encoding: 47 TEXT X-Mailer: Microsoft Mail V3.0 Message-ID: <2ED11400@SMTPGATE2.STRATCOM.AF.MIL> Date: Mon, 21 Nov 1994 13:40:00 PST Sender: Ada programming language From: "Bennett, Chip (KTR) ~U" Subject: Re: ADA error message ... Date: 1994-11-21T13:40:00-08:00 List-Id: 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