comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Attempting to create file i task
Date: Wed, 17 Mar 2021 16:37:39 +0100	[thread overview]
Message-ID: <s2t7o3$ri1$1@dont-email.me> (raw)
In-Reply-To: <5a31fadb-95e2-4fdb-abd7-855ba9ff0e2cn@googlegroups.com>

On 3/17/21 3:47 PM, AdaMagica wrote:
> 
> RM A.10.2(2) For the procedures Create and Open: After a file with mode Out_File or Append_File is opened, the page length and line length are unbounded (both have the conventional value zero). After a file (of any mode) is opened, the current column, current line, and current page numbers are set to one. If the mode is Append_File, it is implementation defined whether a page terminator will separate preexisting text in the file from the new text to be written.
> 
> Doesn't sound like the contents are overwritten. The counting starts with 1, OK, but the old contents should be presevered for Append. Only the presence of a page terminator is implementation defined.

ARM A.8.2 says that Create "Establishes a new external file". A new file has no 
contents.

You might also want to look at this discussions here on c.l.a

https://groups.google.com/g/comp.lang.ada/c/2JYJeBtpm2g/m/H2TAaPlcBgAJ

where Randy Brukardt says that Create with Append_File is defined by the ARM to 
be the same as Out_File.

You might also want to experiment with various compilers and see what they do.

-- 
Jeff Carter
"In our experiments, the [Ada] compile[r] was able to find not
just typographical errors, but also conceptual errors in the
development of the code."
Scott and Bagheri
161

  reply	other threads:[~2021-03-17 15:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-17 12:39 Attempting to create file i task reinert
2021-03-17 12:49 ` J-P. Rosen
2021-03-17 14:17   ` reinert
2021-03-17 14:21     ` reinert
2021-03-17 14:34     ` Jeffrey R. Carter
2021-03-17 15:01     ` Dmitry A. Kazakov
2021-03-17 16:19     ` J-P. Rosen
2021-03-17 16:56       ` reinert
2021-03-17 20:13         ` Simon Wright
2021-03-17 14:18   ` AdaMagica
2021-03-17 14:33     ` Jeffrey R. Carter
2021-03-17 14:34     ` reinert
2021-03-17 14:47       ` AdaMagica
2021-03-17 15:37         ` Jeffrey R. Carter [this message]
2021-03-17 16:56           ` AdaMagica
2021-03-17 15:20 ` Shark8
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox