Re: Standards conforming or not?



The size of the * dimension is simply not available,
And that is the central concept here. All the rest is the standard
elaborating the consequences of that in detail.

So, to solve the OP's problem, he could write instead

call sub(a(1:5), 5)

with the declaration

subroutine sub(a, n)
integer n
real a(n)

as perhaps the "smallest-possible change".

But what stops you from using an explicit interface, via a MODULE or other-
wise?

Jan
.



Relevant Pages

  • Re: dummy argument syntax question
    ... > subroutine foo ... > I was just wondering whether this is a compiler ... Does the standard say anything about it? ... may not have seen the declaration of n yet, ...
    (comp.lang.fortran)
  • Re: A new paradigm
    ... One driver with a standard interface to ... standardised subroutines - everything in my suites is a subroutine ... First I use a 3rd party btree handler for several reasons - cross ... but no one in the rest of the market seemed interested. ...
    (comp.databases.pick)
  • Re: creating directories on the fly
    ... Although the SYSTEM subroutine does not belong to the Fortran ... >> standard, i don't get an indication that I'm using an extension... ... Calling subroutines is not an extension. ... > existing standard intrinsics to be transitioned into modules, ...
    (comp.lang.fortran)
  • Re: Tentative definition versus external linkage
    ... "The Standard model is a combination of features of the strict ref/def ... appropriate declaration without storage class specifier, ... A definition of an identifier is a declaration for that ...
    (comp.lang.c)
  • Tentative definition versus external linkage
    ... I'm having some trouble understanding the rationale for C99 when it ... "The Standard model is a combination of features of the strict ref/def ... appropriate declaration without storage class specifier, ...
    (comp.lang.c)