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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Re : Simple call of Procedure with Ada.float_text_IO.Get Date: Tue, 03 Nov 2015 20:27:32 +0000 Organization: A noiseless patient Spider Message-ID: References: <87h9l4eeon.fsf@adaheads.sparre-andersen.dk> <39131715-ea95-4188-93a1-a9819aa5472b@googlegroups.com> <87d1vse2nk.fsf@adaheads.sparre-andersen.dk> <590d628d-41d5-454e-ae4d-a3c72e0ac698@googlegroups.com> <097ed1af-f5a3-4b91-843c-124ae349a49a@googlegroups.com> <117ec1cb-834e-4aef-8449-0aa32c05fd27@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="2d7699570724a9a82a760842267e2c56"; logging-data="23432"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0cKBFhpEsSo0Xqi16F1Obs2BWC+KRd8o=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:zjtBYAvasRukng5OydROo0tN5hY= sha1:Y70GU1WR/Y1/4Mn+Ql+hLEwCtho= Xref: news.eternal-september.org comp.lang.ada:28202 Date: 2015-11-03T20:27:32+00:00 List-Id: comicfanzine@gmail.com writes: > The point is there are several of them(without File management) : > > procedure Get > (Item : out Num; > Width : Field := 0); > > procedure Get > (From : String; > Item : out Num; > Last : out Positive); > > and, i don't know which one use in my program and how , i tried : The first one reads from standard input (the ARM doesn't explicitly say this), and leaves standard input positioned after the last character of the float number read. The second one reads from the string From, and Last contains "the index value such that From(Last) is the last character read" (not sure if that's the last character of the number, or one past it, I'd have to experiment). So which do you want?