comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: Binding to feof
Date: Mon, 30 Aug 2004 06:56:02 GMT
Date: 2004-08-30T06:56:02+00:00	[thread overview]
Message-ID: <6cAYc.2378$w%6.414@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: <lnk6vi4x3u.fsf@nuthaus.mib.org>

Keith Thompson wrote:

> Keep in mind that C's feof() function returns true *after* an
> attempted input operation has failed by reaching the end of the file;
> Ada's End_Of_File function returns true if the *next* attempted input
> will fail by reaching the end of the file.

That would explain it. That seems to make the function useless, since 
the other operations in my binding raise an exception if an operation 
fails by reaching the end of file.

-- 
Jeff Carter
"Nobody expects the Spanish Inquisition!"
Monty Python's Flying Circus
22




  reply	other threads:[~2004-08-30  6:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-27 18:14 Binding to feof Jeffrey Carter
2004-08-27 21:07 ` Jerry van Dijk
2004-08-28  1:48   ` Jeffrey Carter
2004-08-28  2:25     ` Steve
2004-08-28 18:51       ` Jeffrey Carter
2004-08-28 10:26     ` Eric Jacoboni
2004-08-29  0:15 ` Keith Thompson
2004-08-30  6:56   ` Jeffrey Carter [this message]
2004-08-30 17:16     ` Hyman Rosen
replies disabled

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