In cases where even those very well versed in Fortran standards must go
look up the fine points of definitions and interpretations, I have to
wonder about the wisdom of having introduced certain things into the
standard. It would seem that some of these esoteric features lead too
easily to misuse or at least to creating code that is difficult for
someone else to follow later on, code that then may be unmaintainable in
practice. While it may be too late to change some things already in the
standard, shouldn't difficulty in understanding and implementing be a
prime concern for introducing things not yet in there?
Dick Russell
-----Original Message-----
From: Fortran 90 List [mailto:[log in to unmask]] On Behalf
Of Richard E Maine
Sent: Thursday, January 12, 2006 11:31 AM
To: [log in to unmask]
Subject: Re: array of derived types
......
I always have to look this stuff up, because otherwise I get the fine
points of distinction wrong.
I agree that this is a section, by Aleksander's derivation, but... the
original question has a misconception in implying that "whole array" or
section are the only two possibilities. If you look at the definition of
LBOUND, you won't find the word "section". Instead, you will find "If
ARRAY is a whole array or array structure component..". So let's look at
that question instead of the question of whether ARRAY is a section,
which doesn't seem to have much to do with the definition of LBOUND.
Looks to me like, although typ%in is a section (per Aleksander's
derivation), it is also a structure component. Odd, I thought those were
mutually exclusive, but it sure doesn't look like it to me. The
definition of structure component (R614) is pretty simple. It is just a
data-ref (all these kinds of things are that) with the constraint that
there shall be more than one part-ref (typ%in has 2) and that the
rightmost part-ref shall be of the form part-name (which "in" is).
-----------------------------------------
*****************Internet Email Confidentiality
Footer******************
Privileged/Confidential Information may be contained in this
message.
If you are not the addressee indicated in this message (or
responsible
for delivery of the message to such person), you may not copy or
deliver
this message to anyone. In such case, you should destroy this
message
and notify the sender by reply email. Please advise immediately if
you
or your employer do not consent to Internet email for messages of
this
kind. Opinions, conclusions and other information in this message
that
do not relate to the official business of The Shaw Group Inc. or
its
subsidiaries shall be understood as neither given nor endorsed by
it.
___________________________________________________________________
_____
The Shaw Group Inc.
http://www.shawgrp.com
|