j3-fortran / generics

BSD 3-Clause "New" or "Revised" License
38 stars 8 forks source link

Remove redundant procedure constraints and combine some procedure normative text #125

Closed aury6623 closed 4 months ago

aury6623 commented 4 months ago

For the normative text part, I thought it was just more concise to combine those two paragraphs.

For the constraint part, the constraints about functions and subroutines are redundant because of this constraint:

Constraint: Except for PURE, SIMPLE, and ELEMENTAL
            attributes, the characteristics of all specifications of a
            deferred procedure shall be consistent.

From F2023:

The characteristics of a procedure are the classification of the procedure as a function or subroutine, ...

Since the function or subroutine-ness are characteristics, the constraint written above covers both of the removed constraints in this edit.