Re: Argument of subroutine is an array of unfixed length.



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
.



Relevant Pages

  • Re: Argument of subroutine is an array of unfixed length.
    ... >>David Frank wrote: ... At least nor for any definition of "standard" that involves acronyms ... > The square brackets are standard array syntax in f2003, ... > not a standard form. ...
    (comp.lang.fortran)
  • Re: intel wireless card
    ... I neglected to state that the internal wifi card in the newer notebooks may not ... be miniPCI, but another newer standard form factor. ...
    (alt.sys.pc-clone.dell)
  • Re: Is C++ a type-safe language ??
    ... > committee. ... C headers that have the .h form are deprecated. ... have never had standard form with .h, so they simply cannot be deprecated. ...
    (comp.lang.cpp)
  • Re: Is C++ a type-safe language ??
    ... >> committee. ... Read that FAQ chapter ... > have never had standard form with .h, so they simply cannot be deprecated. ...
    (comp.lang.cpp)