From: "John G. Volan" <johnvolan@sprintmail.com>
Subject: Re: Help With Ada_Io and Exceptions
Date: 1997/05/30
Date: 1997-05-30T00:00:00+00:00 [thread overview]
Message-ID: <338F083A.4D2A@sprintmail.com> (raw)
In-Reply-To: 338E3601.3E7E@onlink.net
David H. Haley wrote:
>
> -- I'm having a bit of a problem with Ada_Io.get after a Data_Error is
> raised,
> -- and am wondering if anyone can shed some light on this.
This is a FAQ. The problem is, when an Integer_IO.Get fails with a
Data_Error, the offending characters aren't eaten up. They remain in
file input stream, ready to offend again. Clearly, your exception
handler needs to do something more than simply re-trying the Get: It
must clean out those offending characters.
Try doing a Skip_Line.
------------------------------------------------------------------------
Internet.Usenet.Put_Signature
(Name => "John G. Volan",
Employer => "Texas Instruments Advanced C3I Systems, San Jose, CA",
Work_Email => "johnv@ti.com",
Home_Email => "johnvolan@sprintmail.com",
Slogan => "Ada95: World's *FIRST* International-Standard OOPL",
Disclaimer => "My employer never defined these opinions, so using " &
"them would be totally erroneous...or is that just " &
"nondeterministic behavior now? :-) ");
------------------------------------------------------------------------
prev parent reply other threads:[~1997-05-30 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-29 0:00 Help with ADT Stack Jon Elbery
1997-05-29 0:00 ` Michael F Brenner
1997-05-29 0:00 ` Help With Ada_Io and Exceptions David H. Haley
1997-05-30 0:00 ` John G. Volan [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox