comp.lang.ada
 help / color / mirror / Atom feed
* Create and Append_File
@ 2019-06-06 20:45 Jeffrey R. Carter
  2019-06-06 21:24 ` Randy Brukardt
  0 siblings, 1 reply; 7+ messages in thread
From: Jeffrey R. Carter @ 2019-06-06 20:45 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-27 21:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2019-06-07 15:56   ` Jeffrey R. Carter
2019-06-08  5:00     ` Randy Brukardt

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