This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]