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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6286c332c8cae43d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-26 08:51:02 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail Message-ID: <3C027312.BA2AF87@home.com> From: Mark Biggar X-Mailer: Mozilla 4.78 [en]C-{C-UDP; EBM-SONY1} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Text_IO.End_Of_File Problem References: <3C01A0AA.AF2F54BF@acm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 26 Nov 2001 16:50:35 GMT NNTP-Posting-Host: 24.250.143.171 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 1006793435 24.250.143.171 (Mon, 26 Nov 2001 08:50:35 PST) NNTP-Posting-Date: Mon, 26 Nov 2001 08:50:35 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:16988 Date: 2001-11-26T16:50:35+00:00 List-Id: Hambut wrote: > > Hmm - OK I understand what you're saying. I think my naive(?) view > was that End_of_File would return true when there were no more > characters for Get to return. To me this seems like an intuitive > assumption. It may be intuitive, but that assumption requires arbitrarily far look ahead. Consider a large file containing a single character followed by 1,000,000+ line terminators. Your assumption requires reading the whole file on encountering the first line terminator. -- Mark Biggar mark.a.biggar@home.com