comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Persson" <spam-away@nowhere.nil>
Subject: Re: Get_Line problem (GNAT bug?)
Date: Thu, 07 Dec 2006 01:28:00 GMT
Date: 2006-12-07T01:28:00+00:00	[thread overview]
Message-ID: <A6Kdh.25639$E02.10441@newsb.telia.net> (raw)
In-Reply-To: 1165453781.897598.296940@16g2000cwy.googlegroups.com

Adam Beneschan wrote:
> Bj�rn Persson wrote:
>> Adam Beneschan wrote:
>> > After the
>> > first Get_Line has consumed the characters M a c i e k <CR>, then, when
>> > End_Of_Line looks ahead and sees that the next character is <CR>, it
>> > should be able to return False immediately without needing to look
>> > ahead to see whether <CR> is immediately followed by EOF.  And I don't
>> > see why this wouldn't apply to an interactive file as well.
>>
>> I agree that that's how it should be, but it's not how End_Of_Line is
>> defined: "Returns True if a file terminator is next, or if the
>> combination of a line, a page, and a file terminator is next; otherwise
>> returns False."
> 
> I meant to type End_Of_File.

So did I. I didn't even notice your mistake, and what I quoted was the
definition of End_Of_File. Oops! :-)

-- 
Bj�rn Persson                              PGP key A88682FD
                   omb jor ers @sv ge.
                   r o.b n.p son eri nu



  reply	other threads:[~2006-12-07  1:28 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-06 14:25 Get_Line problem (GNAT bug?) Maciej Sobczak
2006-12-06 18:06 ` Adam Beneschan
2006-12-06 20:34 ` Gautier
2006-12-06 21:47 ` Dmitry A. Kazakov
2006-12-06 23:40   ` Adam Beneschan
2006-12-07  0:02     ` Björn Persson
2006-12-07  1:09       ` Adam Beneschan
2006-12-07  1:28         ` Björn Persson [this message]
2006-12-07  5:00         ` Jeffrey R. Carter
2006-12-07  8:26   ` Maciej Sobczak
2006-12-07  9:21     ` Jean-Pierre Rosen
2006-12-07 13:35       ` Ludovic Brenta
2006-12-07 22:23       ` Robert A Duff
2006-12-07 10:22     ` Dmitry A. Kazakov
2006-12-07 14:51       ` Maciej Sobczak
2006-12-07 16:29         ` Dmitry A. Kazakov
2006-12-08  8:22           ` Maciej Sobczak
2006-12-07 22:50       ` Robert A Duff
2006-12-08  0:13         ` Randy Brukardt
2006-12-08  4:04         ` Larry Kilgallen
2006-12-08  9:11         ` Dmitry A. Kazakov
2006-12-07  9:14   ` Jean-Pierre Rosen
2006-12-07  3:34 ` Steve
2006-12-07 17:42   ` Adam Beneschan
2006-12-07 22:35     ` Robert A Duff
replies disabled

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