(j3.2006) (SC22WG5.4375) [ukfortran] WG5 informal ballot re Interop. TR
Aleksandar Donev
donev
Mon Dec 6 12:19:59 EST 2010
On 12/06/10 11:20, Bill Long wrote:
> However, one of the original desires of the MPI users was to have
>
> type(*),dimension(*)
>
> map to a void * dummy parameter and have only the address passed. I
> think this would be an often used form.
And I did not propose changing that. On the C side it is still void*.
The issue is what happens when a Fortran routine has such a dummy.
Let me write my proposed solution, this time without typos (I hope) but
I won't try to get the language perfect:
An assumed-type dummy argument that is of assumed-shape or assumed-rank
shall not correspond to an explicit-shape or assumed-size actual
argument that is itself an assumed-type dummy argument.
[I think allocatables and pointers are OK. Also note that a CLASS(*)
actual is allowed.]
Note for Rationale: This ensures that a caller can always pass type
information for an assumed-shape or assumed-rank to the callee, even
though there is no means to inquire it within Fortran.
Thanks,
Aleks
--
Aleksandar Donev, Assistant Professor of Mathematics
Courant Institute of Mathematical Sciences
Office: 909 Warren Weaver Hall, New York University
E-mail: donev at courant.nyu.edu
Phone: (212) 992-7315; Fax: (212) 995-4121
Mailing address: 251 Mercer St, New York, NY 10012
Web: http://cims.nyu.edu/~donev
More information about the J3
mailing list