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: Tue, 23 Mar 2021 10:18:53 +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: 8bit Injection-Date: Tue, 23 Mar 2021 09:18:53 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="125bd99a8fd2429a6cce27f79cf0d07d"; logging-data="30102"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qmNns0qZC2ymYmmM+YefYShgVg9thIhM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 Cancel-Lock: sha1:4IyTWfvJmexSxsEv8kJUBBglPes= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:61649 List-Id: On 3/22/21 9:54 PM, Niklas Holsti wrote: > > Not quite. From the RM: > >    generic >       type Element_Type is private; >    package Ada.Direct_IO is >    ... > > and > >    generic >       type Element_Type(<>) is private; >    package Ada.Sequential_IO is Ah, yes. Having started with Ada 83, I sometimes forget about changes like this. -- Jeff Carter "[I]f you ask, 'Why does Ada do/have this?', the answer often makes you a better programmer." Chad R. Meiners 177