comp.lang.ada
 help / color / mirror / Atom feed
From: Dale Stanbrough <dale@goanna.cs.rmit.edu.au>
Subject: Re: get_line
Date: 1998/06/07
Date: 1998-06-07T00:00:00+00:00	[thread overview]
Message-ID: <6lcql0$8qj$1@goanna.cs.rmit.edu.au> (raw)
In-Reply-To: m3zpfqu68v.fsf@mheaney.ni.net


Matthew Heaney writes:

"If there are the same number of characters in the input line as the
 input buffer, Get_Line will NOT do an end-of-line automatically.  The
 next Get_Line will in fact return 0 as the value of last.  (It's the 2nd
 call the Get_Line that consumes the end-of-line.)
 
 The test to make sure all of the text on the line has been
 consumed is
 
    Last < Input_Buffer'Last
 
 which means "you have read all the text on the current line."
 
 To use this predicate, you'll have to make your buffer size 1 more than
 the advertised maximum."


Yes you are correct. I didn't write exactly what i should have, I can 
now see! What i should have said is "if you do read in exactly the number
of characters as are in the buffer, then you really don't know what
situation you are in - you can still never tell if a skip_line was
called".

Dale




  reply	other threads:[~1998-06-07  0:00 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-05  0:00 get_line Steve Dyrdahl
1998-06-05  0:00 ` get_line Samuel Mize
1998-06-17  0:00   ` get_line Hans Marqvardsen
1998-06-18  0:00     ` get_line John McCabe
1998-06-21  0:00       ` get_line Robert Dewar
1998-06-06  0:00 ` get_line Dale Stanbrough
1998-06-06  0:00   ` get_line Robert Dewar
1998-06-06  0:00   ` get_line Matthew Heaney
1998-06-07  0:00     ` Dale Stanbrough [this message]
1998-06-06  0:00       ` get_line Matthew Heaney
1998-06-18  0:00     ` get_line Robert I. Eachus
  -- strict thread matches above, loose matches on Subject: below --
1999-07-02  0:00 GET LINE babefan
1999-07-02  0:00 ` czgrr
2002-10-29 20:24 Get_Line Justin Birtwell
2002-10-29 20:55 ` Get_Line David C. Hoos
2002-10-30  1:30 ` Get_Line Jeffrey Carter
2002-10-30 13:33   ` Get_Line Justin Birtwell
2002-10-30 14:40     ` Get_Line Preben Randhol
2002-10-30 17:09     ` Get_Line Jean-Pierre Rosen
2002-10-30 18:08     ` Get_Line Jeffrey Carter
2002-10-30 22:42       ` Get_Line Robert A Duff
2002-10-31  0:26         ` Get_Line Chad R. Meiners
2002-10-31  0:44           ` Get_Line Robert A Duff
2002-10-31 10:32             ` Get_Line John English
2002-10-31 11:30               ` Get_Line Preben Randhol
2002-10-31 13:10                 ` Get_Line John English
2002-10-31 17:39             ` Get_Line Warren W. Gay VE3WWG
2002-10-31 21:46             ` Get_Line Chad R. Meiners
2002-11-01 16:59               ` Get_Line Robert A Duff
2002-11-01 21:04                 ` Get_Line Chad R. Meiners
2002-11-01 23:32                   ` Get_Line Matthew Heaney
2002-11-02  0:28                     ` Get_Line Chad R. Meiners
2002-10-31  8:53       ` Get_Line Preben Randhol
2002-10-31 18:04         ` Get_Line Jeffrey Carter
2002-11-01 11:18           ` Get_Line Preben Randhol
2002-10-30 14:44 ` Get_Line Preben Randhol
2002-10-31 21:55 ` 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