From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: surprise data from Ada.Sequential_IO Date: Mon, 22 Mar 2021 20:41:57 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 22 Mar 2021 19:41:57 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="3f41081ced237a412fd5237c283cfd93"; logging-data="8112"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tEifCbmuS/niL2wwvBOLAWgQxCuuDHi0=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 Cancel-Lock: sha1:H8SGmHjTomvNhZkaMlYN13GaAJA= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:61641 List-Id: On 3/22/21 7:14 PM, John Perry wrote: > > For Direct_IO I inferred this fact from ARM A.8.3, "the file is viewed as a set of elements occupying consecutive positions in linear order", but I don't see a similar indication for Sequential_IO. Is there a warning in the ARM about this? > > (I do see the warning in Barnes' book, which I had consulted! and saw! and decided not to use Direct_IO as a result! but somehow read the same thing about Sequential_IO & either forgot or mis-concluded something. So I acknowledge my stupidity here.) The only differences between Direct_IO and Sequential_IO are that Direct_IO allows random access and mixed input and output. In both cases the file contains a sequence of binary representations of values of a single type. I don't really understand why Sequential_IO exists, since Direct_IO provides a superset of Sequential_IO's functionality. -- Jeff Carter "One day he told me he was a gynecologist. He couldn't speak no foreign languages." Take the Money and Run 147