[J3] Can elemental procedure have no dummy arguments?
Daniel C Chen
cdchen at ca.ibm.com
Wed Apr 25 10:22:01 EDT 2018
Hello,
It seems the standard allow an elemental function to have no dummy
arguments as in
[p336] 15.8.2 Elemental function actual arguments and results
"If there are no actual arguments or the actual arguments are all
scalar, the result is scalar."
Such wording begins from F2003.
Q1. Is there an usage for allowing an elemental function to have no dummy
arguments? Even though the above wording could imply all dummy arguments
are optional, I still can't think of an use case.
Q2. There is not other wording to say if an elemental subroutine can have
no dummy arguments or not. What is the intention of the standard?
Thanks,
Daniel
XL Fortran Development, Fortran Standard Representative
IBM Toronto Software Lab
Phone: 905-413-3056
Tie: 969-3056
Email: cdchen at ca.ibm.com
http://www.ibm.com/software/awdtools/fortran/xlfortran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20180425/e96c191b/attachment.html>
More information about the J3
mailing list