[J3] Elemental type-bound functions not useful
Vipul Parekh
parekhvs at gmail.com
Mon Mar 29 02:03:13 UTC 2021
On Sun, Mar 28, 2021 at 9:44 PM Van Snyder via J3 <j3 at mailman.j3-fortran.org>
wrote:
> ..
> The cases where the situation is suboptimal are where the result is of the
> same declared as the arguments. Since the passed-object dummy argument has
> to be polymorphic, it can be an extension of the declared type. But the
> result can't be of the same dynamic type as the argument. ..
>
Van,
I got that, and so will most readers, I think.
Your statements, likely meant to be rhetorical?, such as "Did I miss
something that makes them useful?" in your original post and also its title
suggest that on the basis of that one situation you mention, you've tempted
rather broad questioning of the utility of the ELEMENTAL attribute with
type-bound procedures.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20210328/40889506/attachment.htm>
More information about the J3
mailing list