[log in to unmask] wrote:
...
> Umm, Yes and no. Old programs are often modified as time goes along.
> Adding new syntax like IMPLICIT NONE to an old program as part of the
> enhance/modify/maintain/fool-around-with cycle is a good thing to do
> because it detects potential bugs at compile time. Adding syntax
> like IMPLICIT TREAT ALL REAL LITERALS AS DOUBLE is riskier
> because it could silently break something that works. Sure, everybody
> who modifies a program should read the whole thing through and
> understand everything, but ....
Is this more likely to break something than, say, moving to a Cray?
Is it type mismatches (which are detected at compile-time) that you
are concerned about? Sure, just adopting the C rule that literals
are double would increase static type errors. That's not really
much of a price.
--
J. Giles
|