[J3] [EXTERNAL] Re: Limitations of SELECT RANK?
van.snyder at sbcglobal.net
Tue Oct 20 17:02:03 EDT 2020
On Tue, 2020-10-20 at 19:23 +0000, Bill Long via J3 wrote:
> Or, using the proposed template syntax:
> template subroutine add(b1, b2, b3)
> real,intent(inout) :: b1(..)
> real,intent(in) :: b2(..)
> real,intent(in) :: b3(..)
> b1 = b1 + b2 + b3
> end subroutine add
If parameterized (or template) modules are done, there's no point to
doing parameterized (or template) subroutines.
Without parameterized (or template) modules, it's not possible to
complete integration of parameterized derived types with type-bound
procedures. Parameterized (or template) subroutines do not include
definitions of related (parameterized) types.
If we had done parameterized modules in 2003, we wouldn't have done
parameterized types, or at least not parameterized by kind type
parameters, and there wouldn't be a problem with integration of types
and type-bound procedures.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the J3