[J3] INTENT part of Explicit Interface?
John Reid
john.reid9 at talktalk.net
Sun Sep 22 14:30:14 UTC 2024
Michael,
It depends on whether the interface is implicit or explicit. If it is
explicit, the interface is visible in the procedure itself if is a
module or internal procedure or in its interface block if it is an
external procedure. I don't see how adding intent(in) to an argument of
a procedure that does not alter the value of the argument could break a
program that calls it, whether or not the interface is explicit.
Cheers,
John.
Klemm, Michael via J3 wrote:
> [No sure of the earlier email left my computer. Outlook...]
>
> Hi all,
>
> I have another question about INTENT attributes. Are they part of the visible interface of a subroutine or are they only visible inside the subroutine? I'm asking this to understand if adding INTENT(IN) to a dummy argument of an existing subroutine is a breaking change or not.
>
> Who would I find this in the standard document or other attributes?
>
> Kind regards,
> -michael
More information about the J3
mailing list