comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: procedure Make_File_Gone (Name : in String);
Date: Sat, 23 Jul 2011 02:16:30 +0000 (UTC)
Date: 2011-07-23T02:16:30+00:00	[thread overview]
Message-ID: <j0datu$los$1@speranza.aioe.org> (raw)
In-Reply-To: j0d207$n0n$1@munin.nbi.dk

> I'm of course partial to Purge for this use. :-)

Another verb.  Both the phrase Delete_File and the word Purge say "go
do something" and they leave unclear what to do if you can't do the
action. I'd like to concisely make clear the post condition I'm trying
to achieve - in this case, the absence of a file of the given name.
Ideally this should be clear from the procedure name without having
to look in the ARM or depend on a comment of uncertain modernity.

And yes, there could be a race where someone created a new file of that
name immediately afterward, but avoiding such races is part of the
higher level design.



  reply	other threads:[~2011-07-23  2:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-20  6:04 procedure Make_File_Gone (Name : in String); tmoran
2011-07-20  7:03 ` Oliver Kleinke
2011-07-20  7:12 ` Niklas Holsti
2011-07-20  7:34 ` Martin
2011-07-20 18:02 ` Jeffrey Carter
2011-07-21  7:56 ` Stephen Leake
2011-07-22 23:44 ` Randy Brukardt
2011-07-23  2:16   ` tmoran [this message]
2011-07-23 14:55     ` Robert A Duff
2011-07-23 19:05       ` tmoran
2011-07-23 20:23         ` Dmitry A. Kazakov
2011-07-23 21:08           ` Simon Wright
2011-07-25 15:49             ` Adam Beneschan
2011-07-25 17:28               ` Simon Wright
2011-07-25 17:44 ` marius63
2011-07-27 15:38   ` tmoran
replies disabled

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