From: Jeff Carter <carter@spam.innocon.com>
Subject: Re: [Ada.]Text_IO.Create
Date: 1997/05/14
Date: 1997-05-14T00:00:00+00:00 [thread overview]
Message-ID: <3379CE8B.2781E494@spam.innocon.com> (raw)
In-Reply-To: 3378c3c3.3637188@news.demon.co.uk
John McCabe wrote:
...
> Anyway, I am currently trying to implement a Create function (like in
> Text_IO), however it is not clear to me (either from the Ada 83 LRM or
> the Ada 95 ARM) exactly what behaviour is expected if Create is called
> for a file that already exists. It does state that it "Establishes a
> new external file", however this seems a bit wooly.
...
I think you'll find that this behavior is implementation defined. ALMOST
all versions I've used deleted the existing file and created a new,
empty file with the same name (or truncated the existing file to zero
bytes; I can't tell the difference :). Anyway, since you're creating an
implementation, you're free to decide what it does.
--
Jeff Carter PGP:1024/440FBE21
Auntie-spam reply to; try ( carter @ innocon . com )
"Now go away, or I shall taunt you a second time."
Monty Python & the Holy Grail
next prev parent reply other threads:[~1997-05-14 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-13 0:00 [Ada.]Text_IO.Create John McCabe
1997-05-14 0:00 ` Jeff Carter [this message]
[not found] ` <dewar.863640175@merv>
1997-05-15 0:00 ` [Ada.]Text_IO.Create Larry Kilgallen
1997-05-15 0:00 ` [Ada.]Text_IO.Create John McCabe
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox