(j3.2006) Did we intend for it to be impossible for an elemental function to have a polymorphic result?

Bill Long longb
Wed Nov 18 19:11:53 EST 2015


Why trun a clean and simple feature into an ugly wart?

Cheers,
Bill

On Nov 18, 2015, at 5:19 PM, Van Snyder <Van.Snyder at jpl.nasa.gov> wrote:

> Did we intend for it to be impossible for an elemental function to have
> a polymorphic result?
> 
> The result can only be polymorphic if it has the ALLOCATABLE or POINTER
> attribute, which is prohibited by C12102 in 15-007r2.
> 
> It would be more useful if C12102 were replaced by a requirement (which
> cannot be a constraint) that the dynamic type of every element of the
> result be the same.
> 
> 
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3

Bill Long                                                                       longb at cray.com
Fortran Technical Support  &                                  voice:  651-605-9024
Bioinformatics Software Development                     fax:  651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101





More information about the J3 mailing list