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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Create and Append_File Date: Thu, 6 Jun 2019 22:45:09 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 6 Jun 2019 20:45:11 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="436bc345c0158c91aeb5916f83bbd05d"; logging-data="13083"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FfbZ9FRyhQlPH3WB57XDnfvypAxgWDvM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 Cancel-Lock: sha1:s0Y/N4qw/AXL8KtI6kZhbsc9U7c= Content-Language: en-US X-Mozilla-News-Host: snews://news.eternal-september.org:563 Xref: reader01.eternal-september.org comp.lang.ada:56507 Date: 2019-06-06T22:45:09+02:00 List-Id: You can call Create with mode Append_File. I'm trying to figure out what that's supposed to do (as opposed to what compilers do). I've read ARM A.7, A.8.2, and A.10.2, and am still not sure. It seems there are 2 likely interpretations: 1. Create creates a file, so this is the same as using mode Out_File 2. Since mode Append_File was given, it means to open the file in append mode if it exists, or create it as for mode Out_File if it doesn't If 1., then why allow Append_File for Create? A subtype excluding it could be defined for Create. Of course, you can also Create a file with mode In_File, which I presume means to create an empty file and open it for reading, which doesn't seem very useful, so maybe I shouldn't expect these to make sense. -- Jeff Carter "He nevere yet no vileynye ne sayde In al his lyf unto no maner wight." Canterbury Tales 156