Re: Standards conforming or not?
- From: Bruce Bowler <bbowler@xxxxxxxxxxx>
- Date: Mon, 27 Feb 2006 10:46:47 -0500
On Mon, 27 Feb 2006 15:01:43 +0000, Michael Metcalf put fingers to
keyboard and said:
"Bruce Bowler" <bbowler@xxxxxxxxxxx> wrote in message
news:pan.2006.02.27.14.27.38.589097@xxxxxxxxxxxxxx
Does the following code conform to the Fortran 95 standard?
No. If an array is assumed-size, the DIM parameter must be present in the
reference to SIZE. Of course, with assumed-shape and an explicit interface
all would work as expected.
Regards,
Mike Metcalf
So if I change the write to
write (6,*) size(a,1)
it is standards conforming?
(I realize I could go with the interface and "all would be right with the
world", but in the "real world" example from which this is taken, I'd
rather not if I don't have to.)
If that is now standards conforming, what should be written? 5 or 10?
--
+-------------------+---------------------------------------------------+
Bruce Bowler | If you don't have the time you can't commit the
1.207.633.9600 | crime. - Robert Baker
bbowler@xxxxxxxxxxx |
+-------------------+---------------------------------------------------+
.
- Follow-Ups:
- Re: Standards conforming or not?
- From: Michael Metcalf
- Re: Standards conforming or not?
- References:
- Standards conforming or not?
- From: Bruce Bowler
- Re: Standards conforming or not?
- From: Michael Metcalf
- Standards conforming or not?
- Prev by Date: Re: Standards conforming or not?
- Next by Date: Re: Standards conforming or not?
- Previous by thread: Re: Standards conforming or not?
- Next by thread: Re: Standards conforming or not?
- Index(es):
Relevant Pages
|
|