(j3.2006) (SC22WG5.3591) Assumed-type and Assumed-rank extensions for C Interop TR.

Jim Xia jimxia
Fri Jul 25 14:31:07 EDT 2008


j3-bounces at j3-fortran.org wrote on 07/25/2008 02:19:22 PM:

> Aleks did say "like doing".  Modifying the rules for pointer assignment 
> is not in the paper.  Variables of type(*) are not allowed in that 
> context. We already have the c_f_pointer option, and I was intentional 
> in trying to minimize the impact on other parts of the standard in the 
> TR.  If we wanted to add the pointer assignment rule changes in a future 

> standard revision, the would be possible.  But it's not necessary to get 

> the needed functionality. (Unless I missed something, which is 
possible.)


The basic problem is Fortran side can not use this type directly.  If the 
procedure is defined in Fortran for C, then how can a Fortran programmer 
"map" this dummy argument to real Fortran data type.  This is similar to 
CLASS(*) case, in which we have select type construct, or data pointer 
assignment to deal with that situation.  It seems to me TYPE(*) needs to 
be allowed in data pointer assignment as the target in order to achieve 
this purpose.

Cheers,

Jim Xia

RL Fortran Compiler Test
IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7
Phone (905) 413-3444  Tie-line 313-3444
email: jimxia at ca.ibm.com
D2/YF7/8200 /MKM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://j3-fortran.org/pipermail/j3/attachments/20080725/31692a7d/attachment.html 



More information about the J3 mailing list