Hi all,
>
> I also think that default save is somewhat counter-intuitive, and that the
> F90 style syntax makes it worse.
Let me add my vote to this. In my opinion, Variables should only
have the save attribute if explicitly stated.
> Unfortunately I think that it would cause a lot of complaints about lack
> of backward compatibility if this default were to change. My feeling is
> that the only way to do this would be to introduce yet another attribute,
> which means "don't use static storage for this value", e.g.
Yes, unfortunately this is almost certainly the case. Look
at the battles to get anything deleted from f77 ... But
>
> INTEGER, VOLATILE :: counter = 0
>
> Maybe that choice of keyword name isn't ideal,
I tend to agree. My reaction on seeing Volatile was "ARRGGGHHHHH,
NOT VOLATILE ! Anything put Volatile !" I would like to see a
volatile attribute in the standard, but not in this context, rather
in one more akin to what is used in C.
> others may be able to think
> of something better.
>
AUTOMATIC ?
Ian
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|