Since the introduction of Fortran 90 it has been my humble practice to (the best of my ability) to NEVER rely on type coercion but ALWAYS specify what kind the result is to be. That way code is unambiguous and self-documenting. The subtlety in the type coercion rules will always, unnecessarily, catch some (especially me). Thus, would it be best to consider deprecating the type coercion rules in favour of explicit specification? Otherwise there is a considerable risk of making an already COMPLEX situation INTRACTABLE.
Cheers,
David.
David Vowles
P: +61883135416
M: +61437169167
-----Original Message-----
From: Fortran 90 List [mailto:[log in to unmask]] On Behalf Of Phillip Helbig
Sent: Wednesday, 7 June 2017 6:41 AM
To: [log in to unmask]
Subject: Re: Features for the next Fortran Standard (following Fortran 2015)
> > Could we solve the problem by having a new intrinsic perhaps called
> > CMPLEX that is fully generic, as well as the existing CMPLX, which isn't?
>
> This certainly has had some support in the past, and some people
> attempted to draft concrete proposals for it (it was a public comment
> on Fortran 2008). However, as you note in your later message there
> are some complications,
In other words, it's all very complex. :-)
|