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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.141.110 with SMTP id rn14mr11176040pab.7.1446593774051; Tue, 03 Nov 2015 15:36:14 -0800 (PST) X-Received: by 10.182.247.67 with SMTP id yc3mr323051obc.0.1446593774013; Tue, 03 Nov 2015 15:36:14 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!i2no3724975igv.0!news-out.google.com!z4ni45518ign.0!nntp.google.com!i2no3724968igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 3 Nov 2015 15:36:13 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.243.252.139; posting-account=zd4fUAoAAABZGnAfDxrdJ5Lpts-qUilv NNTP-Posting-Host: 82.243.252.139 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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Re : Simple call of Procedure with Ada.float_text_IO.Get From: comicfanzine@gmail.com Injection-Date: Tue, 03 Nov 2015 23:36:14 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28204 Date: 2015-11-03T15:36:13-08:00 List-Id: Le mardi 3 novembre 2015 21:27:35 UTC+1, Simon Wright a =E9crit : > comicfanzine@gmail.com writes: > > > The point is there are several of them(without File management) : > > > > procedure Get > > (Item : out Num; > > Width : Field :=3D 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? The first one because i don't want procedure get to read a String , i only = want it to read a numeric_literal(float input) enter by the user of the pro= gram .