(j3.2006) (SC22WG5.3667) [ukfortran] N1755: Request for new features from MPI Forum

Robert Corbett Robert.Corbett
Thu Nov 13 01:38:39 EST 2008


N.M. Maclaren wrote:
> 
> Aargh!  No!  C 'const'!  It has NOT been a success - in fact, to describe
> it as a paving slab on the road to hell would be fair. [ Yes, I am referring
> to the saying that the road to hell is paved with good intentions. ]

The best example of that in Fortran 2003 is the PROTECTED attribute.
A casual reader of the standard is likely to believe that a variable
with the PROTECTED attribute cannot be modified outside of the module
in which it is contained.  A careful reading and the interps that
have been issued make it clear that PROTECTED is a promise made by
the programmer that he doesn't modifiy the variable outside of the
module.

Bob Corbett



More information about the J3 mailing list