(j3.2006) TRANSFER

Craig Dedo craig
Fri Dec 3 08:45:27 EST 2010


Everyone:

            It appears that there is no definitive answer to this issue.  FWIW, my opinion
is that polymorphic MOLD arguments should be allowed and that the compiler should use the
dynamic type.  The whole purpose of polymorphism is to allow the type of the polymorphic
variable to change dynamically at run time.  To use the dynamic type in all situations
except as a MOLD argument would be to create an irregularity in the language.

 

            No matter what the correct answer is or should be, it looks like this is
interpretation material.  I may write one up late today or sometime tomorrow.

 

Sincerely,

Craig T. Dedo

17130 W. Burleigh Place

P. O. Box 423                         Mobile Phone:  (414) 412-5869

Brookfield, WI   53008-0423    E-mail:  < <mailto:craig at ctdedo.com> craig at ctdedo.com>

USA

Linked-In:   <http://www.linkedin.com/in/craigdedo> http://www.linkedin.com/in/craigdedo

> -----Original Message-----

> From: j3-bounces at j3-fortran.org [mailto:j3-bounces at j3-fortran.org] On Behalf Of

> Robert Corbett

> Sent: Friday, December 03, 2010 01:20

> To: fortran standards email list for J3

> Subject: (j3.2006) TRANSFER

> 

> An engineer at Oracle recently asked me if the actual

> argument passed to the argument MOLD of the intrinsic

> function TRANSFER can be polymorphic.  If so, he wanted

> to know if the declared type should be used or the

> dynamic type.  I searched Clause 13 for the answer, but

> I found nothing.  I told him to assume that it is allowed,

> and that the declared type should be used.  Did I miss

> something in the standard that answers his question?

> 

> Bob Corbett

> _______________________________________________

> J3 mailing list

> J3 at j3-fortran.org

> http://j3-fortran.org/mailman/listinfo/j3

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://j3-fortran.org/pipermail/j3/attachments/20101203/9673e3cf/attachment.html>



More information about the J3 mailing list