(j3.2006) are selectors allowed to be procedures ?

Jim Xia jimxia
Fri Oct 23 09:38:17 EDT 2009


j3-bounces at j3-fortran.org wrote on 10/22/2009 11:33:33 PM:

> The question in this case is did we intend to limit X to being a data 
> object [another case where we failed to limit 'pointer' to be a 'data 
> pointer'], or did we intend to allow X to be associated with a 
> procedure?  The later does seem to have useful functionality, and seems 
> to be allowed by the current text.  I tried Jim's example with our 
> compiler and it didn't complain.
> 


All the rules in the ASSOCIATE section are pointing to selectors being 
data objects, nothing seems to imply the possibility they being 
procedures.  If we were to allow procedures, then we need to include all 
possibilities of a procedure as a selector.  That includes procedure 
names, procedure pointer names, dummy procedures, procedure pointer 
components, etc.  I don't think we're ready to do that yet.  I'd be happy 
to limit the selectors to data objects for now, until we sort out all the 
mess of the implications of having procedure selectors.

Cheers,


Jim Xia

XL 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

http://www.ibm.com/software/awdtools/fortran/xlfortran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://j3-fortran.org/pipermail/j3/attachments/20091023/c1ac45f4/attachment.htm>



More information about the J3 mailing list