(j3.2006) Does anybody remember why....

Malcolm Cohen malcolm
Mon Sep 17 23:37:13 EDT 2012


The original design for ELEMENTAL considered it desirable to allow and indeed to 
encourage the implementation via procedures which traversed the argument 
array(s) on the inside of the procedure call, not the outside.  Indeed, all the 
language about calling an elemental procedure talks about it being one call, not 
multiple.  Recursion does not fit this model very well (differing recursion on 
different elements).

You can call a pure recursive procedure from an elemental procedure so there is 
no major loss of functionality.

Cheers,

-----Original Message----- 
From: Van Snyder
Date: ?? 24?9?18? 9:40
To: j3
Subject: (j3.2006) Does anybody remember why....

Here's another of those "Does anybody remember why..." questions.

Why are ELEMENTAL and RECURSIVE prohibited by C1245 to coexist in a
<prefix> (R1225)?  It's not obvious that there is a problem either to
explain or implement the combination.


_______________________________________________
J3 mailing list
J3 at mailman.j3-fortran.org
http://mailman.j3-fortran.org/mailman/listinfo/j3

________________________________________________________________________
This e-mail has been scanned for all viruses by Star.
________________________________________________________________________

-- 
................................Malcolm Cohen, Nihon NAG, Tokyo. 




More information about the J3 mailing list