From: Gautier <gautier.demontmollin@maths.unine.ch>
Subject: Re: Philosophical Question (End_Of_File)
Date: 2000/02/11
Date: 2000-02-11T00:00:00+00:00 [thread overview]
Message-ID: <38A494C3.659F9193@maths.unine.ch> (raw)
In-Reply-To: 38A4799B.6D2E7ABE@ftw.rsc.raytheon.com
Wes Groleau wrote:
(...)
> So why do some vendors implement End_Of_File something like this?
> function End_Of_File (....) is
> begin
> Read_Without_Advancing;
> return False;
> exception
> when End_Of_File => return True;
> end End_Of_File;
Mmmmmh interesting...
BTW GNAT that doesn't do so (in Direct_IO, 3.11) is *much* faster
with simple loop within a begin..exception..end block than with
"while not End_Of_File loop" (maybe because both End_Of_File and Read
do check file status ?)
ex. @ http://members.xoom.com/_XMCM/gdemont/uza_html/unz_io__adb.htm#9_11
G.
next prev parent reply other threads:[~2000-02-11 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-11 0:00 Philosophical Question (End_Of_File) Wes Groleau
2000-02-11 0:00 ` Gautier [this message]
2000-02-12 0:00 ` Gautier
2000-02-12 0:00 ` Pascal Martin
2000-02-13 0:00 ` Robert Dewar
2000-03-14 0:00 ` CFP OOPSLA 2000 Sherman Alpert
2000-02-14 0:00 ` Philosophical Question (End_Of_File) John English
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox