Re: array-valued function as dummy argument



John Harper <harper@xxxxxxxxxxxxx> wrote:

In f95, can one declare a dummy argument that is a function whose
value is an array, without having to write an interface block for it?

No.

In f2003 you could use a procedure statement to reference the interface
of some other procedure, but I can't think of any way around writing an
interface block for it in f95. Dummy arguments are one of the few places
where I write interface bodies. C procedures called from Fortran are
another.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: the problem of declaring a function in the interface
    ... But the funny thing is that in the function precedure below, ... then that looks like it supports the allocatable function procedure. ... When I take "allocatable" out in the interface block and the function ... I just need a function result array. ...
    (comp.lang.fortran)
  • Re: ruby style blocks in java
    ... public void doSomething() { ... Array a = new Array; ... the sort of thing you have above actually cut down the number of lines of Java code I had to write by factoring out a whole lot of JDBC try/finally code. ...
    (comp.lang.ruby)
  • Re: array-valued function as dummy argument
    ... value is an array, without having to write an interface block for it? ... If the dummy function uses any of the new stuff beyond f77 ... Some compilers can check at compile time that the ...
    (comp.lang.fortran)