Re: Argument of subroutine is an array of unfixed length.
- From: Richard E Maine <nospam@xxxxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 07:50:35 -0700
In article <d9tvkb$h9v$1@xxxxxxxxxxxxxxxxxxxx>,
Rich Townsend <rhdt@xxxxxxxxxxxxxxxxxxx> wrote:
> David Frank wrote:
> > integer :: a(6) = [1:6]
> Is [1:6] standard sytax for some form of implied do-loop initialization?
No. At least nor for any definition of "standard" that involves acronyms
like ISO or ANSI. (We do have a thread participant who commonly uses a
"different" definition of "standard", so keep that in mind.)
The square brackets are standard array syntax in f2003, but the 1:6 is
not a standard form. I recall once wishing that a simple form like that
could be used for array constructors, but it can't. Implied DOs are much
more flexible, but alas, a bit "wordier" as a consequence.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.
- Follow-Ups:
- Re: Argument of subroutine is an array of unfixed length.
- From: Rich Townsend
- Re: Argument of subroutine is an array of unfixed length.
- References:
- Argument of subroutine is an array of unfixed length.
- From: kurdayon
- Re: Argument of subroutine is an array of unfixed length.
- From: David Frank
- Re: Argument of subroutine is an array of unfixed length.
- From: kurdayon
- Re: Argument of subroutine is an array of unfixed length.
- From: David Frank
- Re: Argument of subroutine is an array of unfixed length.
- From: Rich Townsend
- Argument of subroutine is an array of unfixed length.
- Prev by Date: Re: (something) /= something ?
- Next by Date: Re: Argument of subroutine is an array of unfixed length.
- Previous by thread: Re: Argument of subroutine is an array of unfixed length.
- Next by thread: Re: Argument of subroutine is an array of unfixed length.
- Index(es):
Relevant Pages
|
|