[log in to unmask] wrote:
...
> Yes, but it introduces new problems when there is no obvious
> way to correct a "mistake" do to this promotion.
>
> Things like
> call expects_a_single_precision_arg (3.14)
> or
> call expects_a_single_precision_arg (3.14*single_prec_variable)
> or
> single_prec = max(single_prec, 1.0)
>
> For good or for bad, Fortran has a ton of rules about what types
> can be used where and what the results of mixed type operations
> are, and trying to change (or even improve) them will make old
> programs fail in strange ways.
Well, of course "old programs" won't use the new syntax that says
to assume all KINDless literals are of some particular precision.
And, those that really require single precision can use the now
non-default KIND specifier for single.
--
J. Giles
|