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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4819e43c270862a9 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!nntp.posted.plusnet!news.posted.plusnet.POSTED!not-for-mail NNTP-Posting-Date: Thu, 26 Mar 2009 17:19:04 -0500 Date: Thu, 26 Mar 2009 22:18:49 +0000 From: Tim Rowe User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Newbie Question: Integer_IO an Data_error References: <873ad0ueva.fsf@babel.localdomain> In-Reply-To: <873ad0ueva.fsf@babel.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-LnHcIxM+mKwjgyecO04+LcTOfo+5oT8z5X+bouvKxFHu6FSnoffbDhUFyNvSdZfBda5EGoHoV0ZfEkK!JemyoHGR0vUmooOHCVoSxU84UOFbkMAXY+B3q0gl7FukdkIDokhdsk+QWFIUioH/PyrzaXYkMCyC!Ji8sqHMawh1T X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 X-Original-Bytes: 1732 Xref: g2news1.google.com comp.lang.ada:4352 Date: 2009-03-26T22:18:49+00:00 List-Id: 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.