From: Tim Rowe <spamtrap@tgrowe.plus.net>
Subject: Re: Newbie Question: Integer_IO an Data_error
Date: Thu, 26 Mar 2009 22:18:49 +0000
Date: 2009-03-26T22:18:49+00:00 [thread overview]
Message-ID: <Wp6dnQTpg6rFYlbUnZ2dnUVZ8tudnZ2d@posted.plusnet> (raw)
In-Reply-To: <873ad0ueva.fsf@babel.localdomain>
Zachary Kline wrote:
> The problem comes with Data_errors: if I try to
> handle that case the same way, we get a seemingly infinite loop.
I'm an Ada newbie too, but the first thing I wonder is what Get does
with the input characters if they don't match the expected type. I
wonder whether it leaves them on the input stream -- in which case
subsequent attempts to read the input will try to read the same
characters each time. Until somebody who knows what they're talking
about comes along (won't be long) I'd try doing a string Get after a
failed numeric get, to see what's still in the input stream.
next prev parent reply other threads:[~2009-03-26 22:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-26 21:57 Newbie Question: Integer_IO an Data_error Zachary Kline
2009-03-26 22:18 ` Tim Rowe [this message]
2009-03-26 23:57 ` Zachary Kline
2009-03-27 0:23 ` Tim Rowe
2009-03-27 0:03 ` Adam Beneschan
2009-03-27 0:19 ` Zachary Kline
2009-03-27 8:59 ` Jean-Pierre Rosen
2009-03-27 5:15 ` anon
2009-03-27 8:54 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox