This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Indexing of sections/array function returns
- From: "Paul Keir" <pkeir at dcs dot gla dot ac dot uk>
- To: <fortran at gcc dot gnu dot org>
- Date: Wed, 19 Aug 2009 09:29:07 +0100
- Subject: Indexing of sections/array function returns
Hi all,
Fortran doesn't allow an array section to be indexed (e.g. a(:)(:)). Not
does it allow the return of an array intrinsic to be indexed (e.g.
transpose(b)(1)). Why is that? I thought it might be one (or more) of:
it's unnecessary; it produces inefficient object code; or maybe it's
tricky to parse.
I'm writing a compiler for a language similar to Fortran, and I'm very
temped to include it as a feature.
Thanks in advance,
Paul