From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4f2ff548f619cc58 X-Google-Attributes: gid103376,public From: Gautier Subject: Re: End of File for streams Date: 2000/04/17 Message-ID: <38FB1069.2D13DB8@maths.unine.ch>#1/1 X-Deja-AN: 612222374 Content-Transfer-Encoding: 7bit References: <8df15j$e4b$1@trog.dera.gov.uk> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 17 Apr 2000 15:23:54 +0100, mac13-32.unine.ch Organization: Maths - Uni =?iso-8859-1?Q?Neuch=E2tel?= MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-17T00:00:00+00:00 List-Id: Kevin Rigotti wrote: > I have philosophical and aesthetic objections to trapping the > End_Error exception as a means of determining end of file, but > is this the only way to do it? Other possible advantages of using the exception: - you can stream-in data from an "endless" stream as well (not only a Stream_IO file) - I have noticed much faster data transfers using the exception variant - mainly with GNAT and also with Direct_IO, surely due to the fact it reduces some checks around EOF. ______________________________________________________ Gautier -- http://members.xoom.com/gdemont/gsoft.htm