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,9b84a0d726430783 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-11-29 19:02:39 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!zip.eecs.umich.edu!panix!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: dewar@cs.nyu.edu (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Help with gnat IO Date: 29 Nov 1994 17:05:34 -0500 Organization: Courant Institute of Mathematical Sciences Message-ID: <3bg8je$hsr@gnat.cs.nyu.edu> References: <3bces8$500@scratchy.reed.edu> NNTP-Posting-Host: gnat.cs.nyu.edu Date: 1994-11-29T17:05:34-05:00 List-Id: Woodrew, first please read the documentation, which specifically asks that you send copies of all questions on GNAT to gnat-report@cs.nyu.edu. Second, if you are reading the July 1980 version of the reference manual, you qualify as an Ada historian, this is an interim version that was never finalized, and the final version is different in important respects, so you had better get a relevant version of the standard. Better still, since you are obviously running into pretty elementary problems, you will do better with a good book on Ada, such as the one by John Barnes. To use integer_io, you must with text_io and then instantiate integer_io (there will be examples in any Ada text book, follow them). Alternatively use the string put with Integer'Image(value). There is no Get_String function (was there really a procedure with that name in Ada 80??) There are however versions of get that get from a string, which is presumably what you are looking for. For example: procedure Get (From : in String; Item : out Num; Last : out Positive); this is a subprogram inside the generic package Integer_IO. I posted this just because I thought people would be entertained at the idea of an Ada beginner somehow getting hold of the July 1980 version of the RM! Perhaps we should have burnt all the copies :-)