[J3] Elemental type-bound functions not useful
Van Snyder
van.snyder at sbcglobal.net
Mon Mar 29 02:10:01 UTC 2021
On Sun, 2021-03-28 at 22:03 -0400, Vipul Parekh via J3 wrote:
> 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.
Of course, I meant "did I miss something that makes them useful when
the result dynamic type is expected to be the same as the dynamic type
of one or more of its arguments?"
I don't think that's possible, but if there's a way to make it
possible, I'm all ears.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20210328/33e2c3a6/attachment.htm>
More information about the J3
mailing list