comp.lang.ada
 help / color / mirror / Atom feed
From: Larry Coon <larry@fs2.assist.uci.edu>
Subject: Re: Exception problem
Date: 1997/02/19
Date: 1997-02-19T00:00:00+00:00	[thread overview]
Message-ID: <330B22E2.DE9@fs2.assist.uci.edu> (raw)
In-Reply-To: 5eds57$iog@felix.seas.gwu.edu


Michael Feldman wrote:

> You need
>              Skip_line;
> here, which advances the input beyond the line terminator.
> The problem is that if your first character is non-numeric,
> the exception is read and the character is left in the buffer.
> This is correct RM behavior; numeric input ceases when a character
> is encountered that can't be part of a numeric token. It stays in
> the input buffer because it might have been intended to be picked
> up on the next read.

Ahh, that's it!  I figured it probably wasn't advancing past the
character, and I guess that it makes sense that the Get call would
continue to try to use the character if it remains in the buffer.

> in Ada jargon, exceptions are "raised" and "handled".

Can you tell what language I use most? ;-)

Larry Coon
University of California
larry@fs2.assist.uci.edu




  reply	other threads:[~1997-02-19  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-18  0:00 Exception problem Larry Coon
1997-02-18  0:00 ` Michael Feldman
1997-02-19  0:00   ` Larry Coon [this message]
1997-02-19  0:00 ` David C. Hoos, Sr.
1997-02-19  0:00   ` Robert Dewar
1997-02-19  0:00   ` Larry Coon
1997-02-19  0:00 ` Joerg Rodemann
1997-02-19  0:00   ` Mats Weber
1997-02-19  0:00 ` Keith Allan Shillington
1997-02-22  0:00 ` Arthur Evans Jr
1997-02-24  0:00   ` Larry Coon
1997-02-24  0:00     ` Larry Kilgallen
1997-02-24  0:00       ` Larry Coon
1997-02-25  0:00         ` Fergus Henderson
1997-02-25  0:00     ` Do-While Jones
1997-03-09  0:00       ` John Volan
1997-03-09  0:00         ` Robert Dewar
1997-03-12  0:00         ` Keith Thompson
1997-02-25  0:00   ` Robert I. Eachus
replies disabled

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