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.
Loren P. Meissner
[log in to unmask]
> -----Original Message-----
> From: [log in to unmask]
> [mailto:[log in to unmask]]On Behalf Of Van Snyder
> Sent: Monday, November 16, 1998 3:02 PM
> To: comp-fortran-90
> Subject: Re: Suggestion for Fortran 2000
>
>
> James Giles wrote:
>
> ...
> >>Ok, why not Dot_Prod, this name has 8 characters and it has very clear
> >>meaning. In C you can use other names through the command #define, but
> >>in fortran it is not so easy, some times you need to use some functions
> >>many times and if it is has very long name and also you have to repeat
> >>useless information like in the case of Dot_Product(x,x) your code could
> >>have a lot of characters that could be avoided.
. . .
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|