Liste des Groupes | Revenir à cl c |
On Fri, 5 Apr 2024 07:18:09 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>On Fri, 5 Apr 2024 08:30:16 +0200, Janis Papanagnou wrote:>
For the first question I thought you were referring to old Fortran
versions ...
I did say “has”, not “had”.
Yes, but I read that 'KIND' specification as a readable variant of
the old syntax ...
It’s parameterizable. That means it is easy to change the precision
of the type right through your code just by altering one definition.
Also, KIND participates in function overloading. That requires it to
be compile-time constant. There are also LEN parameters, which can be
dynamic, but can only be used to size arrays and strings.
I still think that Janis asked correct questions and that you answered
misleading answers.
I had never read the Fortran-2003 Standard, however I will be very
surprised if it mandates support for integer types wider than 64 bits
(or 18 decimal digits). I would not be surprised if hard mandate is
even lower, may be only 9 digits.
Also I would be surprised if there are implementations that support
integers that are wider than 128 bits (38 digits).
Les messages affichés proviennent d'usenet.