(j3.2006) (no subject)

Michael Ingrassia michaeli940
Fri Mar 13 18:13:21 EDT 2009


> The procedure declaration statement appears to violate C1219 
> (09-007:[291:26-27]). 

 Does it?  As I read it C1219 asks if sin (the proc-interface) is elemental, and when it
is, requires that p (the procedure-entity-name) should specify an external procedure.
And p isn't intrinsic or a dummy procedure or an internal procedure so it must be
an external procedure, right?  If so, no censure from C1219.

 >What is the rationale for this constraint? 

 According to the first sentence of the section, a procedure declaration statement
defines procedure pointers (which by definition have the EXTERNAL attribute),
dummy procedures, and external procedures.  So a constraint that says 

procedure-entity-namehas to be an external procedure is pretty much just ruling out 

dummy procedures.  Maybe part of the rationale is to avoid stealth declarations of

elemental dummies which don't visibly use the ELEMENTAL keyword?   

Certainly it would make it hard for tools
which try to parse only the SUBROUTINE statement to understand the interface cheaply.
 
              --Michael I.

 


_________________________________________________________________
Express your personality in color! Preview and select themes for Hotmail?. 
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://j3-fortran.org/pipermail/j3/attachments/20090313/74c8e924/attachment.html 



More information about the J3 mailing list