From: | glen herrmannsfeldt <gah@ugcs.caltech.edu> |
Newsgroups: | comp.compilers,comp.lang.pl1 |
Date: | Mon, 20 Aug 2007 13:12:42 -0800 |
Organization: | Compilers Central |
References: | 07-08-01607-08-021 07-08-024 07-08-034 07-08-037 07-08-040 07-08-041 07-08-044 07-08-051 07-08-054 |
Keywords: | PL/I, Fortran, parallel, comment |
Posted-Date: | 20 Aug 2007 23:07:29 EDT |
James J. Weinkam wrote:
(snip regarding array expressions)
> For both array expressions and array assignments all arrays involved
> must have the same number of dimensions and identical bounds.
There has been some discussion about this in comp.lang.fortran.
Fortran doesn't pass the lower bound in assumed shape arrays.
That is convenient in that one can do array operations on arrays with
the same shape but different lower bounds. On the other hand, passing
the lower bounds as PL/I does seems more consistent. Since you can't
use DEFINED on actual or dummy arguments, there isn't a convenient way
to fix it.
-- glen
[Fortran has backward compatibility issues going back to the 1950s.
You've always been able to pass any array element as an argument by
address, and it's up to your code to get the array shapes
right. The only descriptors are the lengths of character variables introduced
in F77. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.