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 #82867 is a reply to message #82862] Tue, 22 January 2013 09:41 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior 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?

I agree it's an annoyance but it's a relatively standard requirement
that the programmer be responsible for their output. Typically after the
first time this sort of thing happens one changes one's programming
habits to prevent further finger-burning.

I would most definitely not want the default behaviour to change since
it's well established that the default behaviour is to clobber existing
filenames of the same name. That sort of default pretty much crossing
language boundaries too.

<tongue-in-cheek>
Maybe you should write your own save file creation wrapper with a
"do_what_I_mean"
keyword? And perhaps a
"ignore_what_I_ask_for_but_do_not_mean"
keyword for others?
</tongue-in-cheek>

:o)

cheers,

paulv


On 01/22/13 10:50, lefsky@gmail.com wrote:
> I've been wanting this for a while:
>
> Sometimes I type save and (for a variety of reasons)overwrite an old
> idslave file that I didn't want to overwrite. What I'd like to see is
> the default behavior include a query to the user if a) no filename is
> provided (i.e. the idlsave.dat file is going to be used) and b) the
> command is issued from the command line. This should prevent
> accidental over-writes but not impact program behavior.
>
> What would be the negative implications of such a change? Are others
> interested in this modification?
>
> Exelisvis: Is this possible?
[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:37:11 PDT 2025

Total time taken to generate the page: 0.00476 seconds