Next: Pure subroutine definition Up: Pure Procedure Declaration Previous: Pure Procedure Declaration

Pure function definition

The following constraints are added to Rule R1215 in Section 12.5.2.2 of the Fortran 90 standard (defining function-subprogram):

The above constraints are designed to guarantee that a pure function is free from side effects (i.e., modifications of data visible outside the function), which means that it is safe to reference concurrently, as explained earlier.



Next: Pure subroutine definition Up: Pure Procedure Declaration Previous: Pure Procedure Declaration


paula@erc.msstate.edu
Thu Jul 21 17:05:43 CDT 1994