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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!husc6!mailrus!ames!pasteur!ucbvax!spp3.UUCP!simpson From: simpson@spp3.UUCP (Scott Simpson) Newsgroups: comp.lang.ada Subject: END_OF_* Ambiguity? Message-ID: <8806172317.AA14235@spp3.SPP> Date: 17 Jun 88 23:17:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet List-Id: There seems to be some ambiguity in the LRM in reference to END_OF_PAGE and END_OF_FILE. I am using TEXT_IO and I have some code that looks like while not END_OF_FILE and then (END_OF_PAGE or END_OF_LINE) loop which I assume can be condensed into while not END_OF_FILE and then END_OF_LINE loop since if you have an end of page, you have an end of line. Now, to quote from the LRM 14.3.4, line 21 on the END_OF_PAGE command "Returns TRUE if the combination of a line terminator and a page terminator is next, or if a file terminator is next; otherwise returns FALSE." Notice the word "or". So it sounds like you could have . . . . . or . terminate a page. Logically speaking, an can't go without an . Now let's look at the description of END_OF_FILE. "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." Notice how the "or" above is now an "and". So this says you can have . . . . . or . terminate a file. Now what does . . . do? This seems like a logical condition, yet it is not explained. Is it true that each is a stronger condition; that is, when you have end of page, you have end of line; when you have end of file, you have end of page and end of line? Can you have and end of file without having an end of page? Scott Simpson TRW Space and Defense Sector ...{decvax,ihnp4,ucbvax}!trwrb!simpson (UUCP) trwrb!simpson@trwind.trw.com (Internet)