I'm with Tony on this.
Any of the situations that Susan outlines, except the 'correct' scenario
of CREATE.FILE when neither VOC entry nor underlying O/S file pre-exist,
is in my view a serious run-time error. The program should fail in that
situation.

A well-designed program should [in my not-so-humble opinion ;-) ] always
check for the existence of a file it's about to create.  Then the design
specification would state what is the correct action. That may be to
carry on, or to delete and re-create, or to ask the user what to do, or
just to report an error and stop.


Regards


Mike


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tony Gravagno
Sent: Thursday, 24 May 2007 6:18 a.m.
To: [email protected]
Subject: RE: [U2] [BB] U2 Enhancement Request - CREATE.FILE

Smart is in the eyes of the beholder.  (huh?)  I just went through a
similar situation.  Let's say the CREATE.FILE points to an undesirable
path
via some programmatic glitch.  Now delete, clear, or write over the
data.
Anything in there goes away or gets butchered.  If you use sudo to get
into
U2 or you are otherwise using permissions that allow you to blow away
something that you really needed, you're in a world of hurt.  A prompt
might be nice but it should not be exposed to end-users.  A mis-used
Force
option could be very dangerous.  Be careful about what you ask for, you
might get it.  :)

T

Susan Joslyn wrote:
> The CREATE.FILE could be smart enough to recognize these latter two
> situations and rectify them:
>   CREATE.FILE finds a VOC but no underlying file - delete the VOC and
> create fresh.
>   CREATE.FILE finds an underlying file but no VOC pointer - create
> the VOC pointer to the existing file.
> 
> Ideally it will stop and report what is happening and ask, but there
> could be a FORCE type option that did not stop for the question.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
The information contained in this Internet Email message is intended
for the addressee only and may contain privileged information, but not
necessarily the official views or opinions of the New Zealand Defence Force.
If you are not the intended recipient you must not use, disclose, copy or 
distribute this message or the information in it.

If you have received this message in error, please Email or telephone
the sender immediately.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to