Re: Vector assignment semantics (was Re: latest trends in compiler optimization research?)

glen herrmannsfeldt <gah@ugcs.caltech.edu>
Mon, 20 Aug 2007 13:12:42 -0800

          From comp.compilers

Related articles
[8 earlier articles]
Re: Vector assignment semantics (was Re: latest trends in compiler opt wyrmwif@tsoft.org (SM Ryan) (2007-08-16)
Re: Vector assignment semantics (was Re: latest trends in compiler opt bmoses-nospam@cits1.stanford.edu (Brooks Moses) (2007-08-15)
Re: Vector assignment semantics (was Re: latest trends in compiler opt mojaveg@mojaveg.lsan.mdsg-pacwest.com (2007-08-17)
Re: Vector assignment semantics (was Re: latest trends in compiler opt gah@ugcs.caltech.edu (glen herrmannsfeldt) (2007-08-17)
Re: Vector assignment semantics (was Re: latest trends in compiler opt Peter_Flass@Yahoo.com (Peter Flass) (2007-08-17)
Re: Vector assignment semantics (was Re: latest trends in compiler opt jjw@cs.sfu.ca (James J. Weinkam) (2007-08-20)
Re: Vector assignment semantics (was Re: latest trends in compiler opt gah@ugcs.caltech.edu (glen herrmannsfeldt) (2007-08-20)
Re: Vector assignment semantics (was Re: latest trends in compiler opt jvorbrueggen@mediasec.de (=?ISO-8859-1?Q?Jan_Vorbr=FCggen?=) (2007-08-21)
Re: Vector assignment semantics (was Re: latest trends in compiler opt tom@kednos.company (Tom Linden) (2007-08-26)
Re: Vector assignment semantics (was Re: latest trends in compiler opt gah@ugcs.caltech.edu (glen herrmannsfeldt) (2007-08-29)
Re: Vector assignment semantics (was Re: latest trends in compiler opt tom@kednos.company (Tom Linden) (2007-09-11)
| List of all articles for this month |

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]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.