comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Re : Simple call of Procedure with Ada.float_text_IO.Get
Date: Tue, 03 Nov 2015 20:27:32 +0000
Date: 2015-11-03T20:27:32+00:00	[thread overview]
Message-ID: <lyoafaltfv.fsf@pushface.org> (raw)
In-Reply-To: 117ec1cb-834e-4aef-8449-0aa32c05fd27@googlegroups.com

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?

  parent reply	other threads:[~2015-11-03 20:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-02 12:33 Re : Simple call of Procedure with Ada.float_text_IO.Get comicfanzine
2015-11-02 13:03 ` Jacob Sparre Andersen
2015-11-02 14:46   ` comicfanzine
2015-11-02 17:23     ` Jacob Sparre Andersen
2015-11-02 21:51       ` comicfanzine
2015-11-02 23:02         ` AdaMagica
2015-11-03 11:42           ` comicfanzine
2015-11-03 11:52           ` comicfanzine
2015-11-03 18:40           ` comicfanzine
2015-11-03 19:02             ` Jeffrey R. Carter
2015-11-03 20:27             ` Simon Wright [this message]
2015-11-03 23:14               ` comicfanzine
2015-11-03 23:36               ` comicfanzine
2015-11-04 10:30                 ` Simon Wright
2015-11-04 12:39                   ` comicfanzine
2015-11-04 14:37                   ` comicfanzine
2015-11-04 16:06                     ` Simon Wright
2015-11-03  6:44         ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox