Re: warn about implicit SAVE?



Colin Watters <qolin.see_signature@xxxxxxxxxxxxx> wrote:

integer, nosave :: i = 1

I'll add my usual knee-jerk reaction to this common mis-description of
the issue. Your description of what you want is incorect. Having the
variable be unsaved would *NOT* achieve what you intend. If the was
unsaved, then its value would be undefined on the second entry - just
like it was with the comparable code in f77. (You couldn't use this
syntax in f77, but the DATA statement did the same thing with a
different syntax).

Making the variable usaved doesn't achieve can turn a valid program into
aninvalid one. But it cannot turn an invalid program into a valid one or
change the meaning of a valid one. In other words, it does absolutely
nothing useful.

What you actually want is for the initialization to happen on each
entry. That is *NOT* the same thing as making the variable unsaved.
Perhaps you could specify that his would also happen, but such a
specification won't be there by magic.

I'll not debate the wisdom of the feature. That's been done here many
times, and I don't have anything new to say about it. I limit myself to
correcting the technical description. Ask just for a capability to
declare something unsaved and you might get exactly what you asked
for... which wouldn't be what you wanted.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: ldp Constraints Violation in modifying password
    ... Constraint violation on a pwd modify operation usually means that you either ... didn't specify the password in the right syntax or violated password policy. ... Use the same syntax as above to specify the value. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Week number with DatePart syntax, and Server...
    ... I had to use the Datepart syntax. ...     Sub WeekNumJRS'' Tdy is CDate in; Y W D out ... ' To let it return the name of a month, specify 2 digits: ...
    (microsoft.public.scripting.vbscript)
  • Re: IVF continues to disappoint (relatively)
    ... In quite a few of these cases g95 is still unable to detect ... array syntax. ... You're saying that g95 won't do well on that F77 code, ...
    (comp.lang.fortran)
  • Re: neural networks output problem
    ... (syntax of this command varies trough different versions of matlab, at least the first part, but I guess that's not the problem) ... Your syntax is incorrect for either version. ... You didn't specify what version of the Toolbox you are using. ... Your output activation function should either be the default ...
    (comp.soft-sys.matlab)
  • Re: Changing Default Names
    ... In fact the syntax you have here will not work, ... >>create a Default under a different owner and test it ... >>>That bug has nothing to do with your problem. ...
    (microsoft.public.sqlserver.server)