[J3] Can elemental procedure have no dummy arguments?
Steve Lionel
steve at stevelionel.com
Wed Apr 25 14:16:42 EDT 2018
On 4/25/2018 2:00 PM, Daniel C Chen via J3 wrote:
>
> I think the question is then: Should the standard have an explicit
> constraint saying an elemental procedure (function or subroutine)
> should have at least one dummy argument (optional or not)?
>
I would say "not". There's no harm done in allowing this combination,
even if we can't think of a use. Consider, what's the "use" of a program
consisting of just an END statement? We don't tend to go in for such
restrictions.
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20180425/9f163778/attachment-0001.html>
More information about the J3
mailing list