Re: Is this namelist code legal?
- From: "Michael Metcalf" <michaelmetcalf@xxxxxxxxxxxxxx>
- Date: Fri, 05 Oct 2007 21:16:03 GMT
"Jerry DeLisle" <jvdelisle@xxxxxxxxxxx> wrote in message
news:a6wNi.13$h33.9@xxxxxxxxxxx
write (10, '(A)') " x%i = , ,-3, -4"
The line above is illegal. It represents an array of arrays (i and m), which
is not allowed in Fortran (see "Fortran 95/2003 Explained", Section 6.13).
write (10, '(A)') " x(2)%m(2)%ch(1)(1) ='w',"
This line contains a spurious '(1)'
write (10, '(A)') " x%m%ch(:)(2) = 'z','z','z','z','z','z','z','z',"
This is also an attempt at an array of arrays (x and m).
I would hope that *all* compilers complain about this!
Regards,
Mike Metcalf
.
- Follow-Ups:
- Re: Is this namelist code legal?
- From: glen herrmannsfeldt
- Re: Is this namelist code legal?
- From: Michael Metcalf
- Re: Is this namelist code legal?
- References:
- Is this namelist code legal?
- From: Jerry DeLisle
- Is this namelist code legal?
- Prev by Date: Re: novice inquiry; real number, jabber room
- Next by Date: Re: Is this namelist code legal?
- Previous by thread: Is this namelist code legal?
- Next by thread: Re: Is this namelist code legal?
- Index(es):