(j3.2006) Does F2015 allow assumed-rank components in derived types?
Malcolm Cohen
malcolm
Mon Jan 12 20:11:48 EST 2015
Tom Clune asks:
>Does F2015 allow assumed-rank components in derived types?
Ask Bill replied, no.
Assumed rank is only for dummy variables. Just like assumed shape. And unlike
assumed shape, it is really only for interoperation with C.
If we were to add a concept of "deferred rank" we could then have (nondummy)
pointers and allocatables of deferred rank, just as we do for deferred shape;
this would include components.
However, that would be pretty useless without a few other things like SELECT
RANK. It would be significant work to develop this idea.
Cheers,
--
................................Malcolm Cohen, Nihon NAG, Tokyo.
More information about the J3
mailing list