Re: warn about implicit SAVE?
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Mon, 2 Oct 2006 20:58:38 -0700
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
.
- Follow-Ups:
- Re: warn about implicit SAVE?
- From: Colin Watters
- Re: warn about implicit SAVE?
- From: glen herrmannsfeldt
- Re: warn about implicit SAVE?
- References:
- warn about implicit SAVE?
- From: beliavsky
- Re: warn about implicit SAVE?
- From: Colin Watters
- warn about implicit SAVE?
- Prev by Date: Re: 64-bit Workstation Configuration Help Needed
- Next by Date: Re: 64-bit Workstation Configuration Help Needed
- Previous by thread: Re: warn about implicit SAVE?
- Next by thread: Re: warn about implicit SAVE?
- Index(es):
Relevant Pages
|