comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: Attempting to create file i task
Date: Wed, 17 Mar 2021 09:56:27 -0700 (PDT)	[thread overview]
Message-ID: <14477d62-77cd-445c-8a39-b8815758238bn@googlegroups.com> (raw)
In-Reply-To: <s2t7o3$ri1$1@dont-email.me>

Jeffrey R. Carter schrieb am Mittwoch, 17. März 2021 um 16:37:42 UTC+1:
> 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. 
> ARM A.8.2 says that Create "Establishes a new external file". A new file has no 
> contents.

Uh ah, I overlooked this in the above citation: After a file (of any mode) is *opened*, 
But the next sentence for Append does not make it clear whether this applies only to Open. It sounds like the old contents are saved for both, Open and Create.
So very bad wording here. But it makes sense that Create creates a new (hence empty) file.

> 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.

Thanx for the reminder of this discussion.
Christoph

  reply	other threads:[~2021-03-17 16:56 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
2021-03-17 16:56           ` AdaMagica [this message]
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