comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Requested change to "SAVE" procedure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Requested change to "SAVE" procedure [message #82934 is a reply to message #82867] Wed, 23 January 2013 09:33 Go to previous message
Matthew is currently offline  Matthew
Messages: 18
Registered: February 2006
Junior Member
> If "accidental" overwrites are that big of an issues for you, how come
> you are not checking that the file exists before you try to create it --
> and thus clobber existing ones?

The SAVE command works without any arguments. If SAVE is called without arguments, I would assume that the user wants a new file, not to overwrite existing files. In this case, a '-001' appended to the filename seems like the right move. Either that, or make FILENAME required.

If SAVE is called with the FILENAME keyword, then clobbering should take place. It is definitely the user's fault this time.

My two cents...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reading CDF files on a Mac
Next Topic: Re: Region_Grow kills IDL Workbench on Windows

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:53:57 PDT 2025

Total time taken to generate the page: 0.00372 seconds