Actual argument specification

Read syntax diagramSkip visual syntax diagram
>>-+------------------+--+-argument-----------------+----------><
   '-arg_keyword-- = -'  |                   (1)    |   
                         +-%VAL--(--argument------)-+   
                         |                   (2)    |   
                         '-%REF--(--argument------)-'   

Notes:
  1. IBM extension
  2. IBM extension
arg_keyword
is a dummy argument name in the explicit interface of the procedure being invoked
argument
is an actual argument
%VAL, %REF
specifies the passing method. See %VAL and %REF (IBM extension) for more information.
An actual argument appears in the argument list of a procedure reference. The following actual arguments are valid in procedure references:
  • An expression
  • A variable
  • A procedure name
  • An alternate return specifier (if the actual argument is in a CALL statement), having the form *stmt_label, where stmt_label is the statement label of a branch target statement in the same scoping unit as the CALL statement.

An actual argument specified in a statement function reference must be a scalar object.

In Fortran 2003, a procedure name cannot be the name of an internal procedure, statement function, or the generic name of a procedure, unless it is also a specific name. Fortran 2008 beginsHowever, Fortran 2008 permits the name of an internal procedure.Fortran 2008 ends

The rules and restrictions for referencing a procedure described in Procedure references. You cannot use a non-intrinsic elemental procedure as an actual argument in Fortran 95.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us