>The proposal does not invalidate any old programs.
Unfortunately it does, it invalidates programs going all the way back to
Fortran 77.
>And some users could well find that their programs begin giving
more-accurate results !! because they did not use CMPLX correctly (and
inadvertently had their double-precision values quietly converted to single
precision).
And other users could well find their programs failing to compile, giving
incorrect results, or crashing at runtime because they are now passing
things twice as big as before, but the receiver is not expecting that.
>The inadequacy of the existing CMPLX has caught professionals.
Which is precisely why I wrote:
>> You might find it easier to use a compiler that warns you when you've
>> apparently forgotten to use the KIND argument of CMPLX.
Such compilers are in fact available.
Cheers,
--
........................Malcolm Cohen, NAG Oxford/Tokyo.
|