comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Text_IO.Get_Line
Date: 1997/05/17
Date: 1997-05-17T00:00:00+00:00	[thread overview]
Message-ID: <dewar.863917102@merv> (raw)
In-Reply-To: 19970517194301.PAA19410@ladder02.news.aol.com


RE Hixon says

<<This may have a simple fix, but it has me perplexed.  I have used several
different Ada compilers (Ada 83 and 95) on different types of Intel based
systems and keep getting the same results.  When I use Get_Line and enter
more characters than the specified string will hold; the remaining
characters stay in the input buffer waiting for the next Get.  This causes
an exception to occur.  My fix is to execute a Skip_Line after each
Get_Line, but this seems inefficient.  Any ideas, or reasons why I am
getting these results?>>

I don't quite understand what is perplexing you, but the behavior you
describe as perplexing is exactly what is required in the Ada 95 RM, so
it is hardly surprising that "several different Ada compilers" behave the
same way. (Ada 83 is the same as Ada 95 here).

Perhaps you could describe what you want to achieve, and then maybe we
can suggest how to program it using the features in Ada :-)





  reply	other threads:[~1997-05-17  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-17  0:00 Text_IO.Get_Line RE Hixon
1997-05-17  0:00 ` Robert Dewar [this message]
1997-05-19  0:00   ` Text_IO.Get_Line RE Hixon
1997-05-19  0:00     ` Text_IO.Get_Line Matthew Heaney
1997-05-22  0:00   ` Text_IO.Get_Line RE Hixon
1997-05-22  0:00     ` Text_IO.Get_Line Nick Roberts
1997-05-25  0:00     ` Text_IO.Get_Line Jerry van Dijk
1997-05-18  0:00 ` Text_IO.Get_Line Matthew Heaney
replies disabled

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