Loren P. Meissner wrote:
>Then of course, there are the various proposals over the past 20 years or more,
>to add an integrated MACRO facility to Fortran (text substitution, with various
>additional features depending on the specific proposal).
>
>If you just want to avoid the extra keystrokes of typing a long expression more
>than once, this would be a way to do it. Or you could create your Fortran
>program on a computer instead of a key punch, and use a COPY operation in the
>word processor.
The point that I was addessing (peripheral to this particular thread)
was that using POINTERs to array slices usually has just that kind
of "avoiding keystrokes" purpose and nothing more. The use of
simple text substitution can replace these uses of POINTER
and be more legible (and simpler for the compiler to optimize).
I still can find no reason that POINTERs were made so complicated.
I have yet to see a reason to use POINTERs-to-slices.
--
J. Giles
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|