comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon.john.wright@gmail.com>
Subject: Re: Create and Append_File
Date: Wed, 27 Nov 2019 13:40:38 -0800 (PST)
Date: 2019-11-27T13:40:38-08:00	[thread overview]
Message-ID: <49e9c411-f09f-4ec9-82fb-4343b682f06c@googlegroups.com> (raw)
In-Reply-To: <lytvd17rjq.fsf@pushface.org>

On Friday, 7 June 2019 09:01:15 UTC+1, Simon Wright  wrote:
> "Randy Brukardt" <randy@rrsoftware.com> writes:
> 
> > As you note, Create (In_File) is already nonsense, so Create
> > (Append_File) might as well be nonsense as well (it's *less* nonsense
> > in any case, since a modeless Reset preserves the mode, and the file
> > wouldn't necessarily be empty at that point).
> 
> I guess I should add this to my StackOverflow answer which may have been
> the trigger for this question. I have No Idea why I thought it sensible
> to Create the file in Append_File mode.
> 
> https://stackoverflow.com/a/56404909/40851

I see that I did update that answer, with

>At first glance, you might wonder what the point of opening a file that must have been empty in append mode is. Normally, of course, it might as well have been opened in standard out mode; the only difference would be if for some reason you had to use the modeless [`Reset`](http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-A-10-1.html#p11). In that case, if the file was created in append mode it would remain in append mode, so any previous updates wouldn’t be lost.


  parent reply	other threads:[~2019-11-27 21:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-06 20:45 Create and Append_File Jeffrey R. Carter
2019-06-06 21:24 ` Randy Brukardt
2019-06-07  8:01   ` Simon Wright
2019-06-07 15:59     ` Jeffrey R. Carter
2019-11-27 21:40     ` Simon Wright [this message]
2019-06-07 15:56   ` Jeffrey R. Carter
2019-06-08  5:00     ` Randy Brukardt
replies disabled

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