(j3.2006) (j3.2005) Re: elemental and BIND(C)
Aleksandar Donev
donev1
Wed Nov 22 12:51:01 EST 2006
On Wednesday 22 November 2006 09:21, Bill Long wrote:
> Are we convinced there really is a problem
> calling an elemental subprogram from C?
This should not be allowed...and this coming from someone that wants BIND(C)
internal, private module, etc. procs. There does not seem to be a plausible
semantics here---unless the ELEMENTAL is really ignored and only a scalar
entry point with a binding label is generated. One of the points of design of
elementals is that compilers should be able to compile them into a set of
procedures, one for each rank, which would be more efficient than calling the
scalar version in an inner loop. I guess the compiler can generate those and
use them on the Fortran side only.
In any case, specifying the meaning here requires some work and thought, so it
is feature creep. In F2003 it should not be allowed, even if a corrigendum is
needed to achieve that effect.
Aleks
P.S. Trying out the new list here
More information about the J3
mailing list