extends_type_of(3f) - [FORTRAN:INTRINSIC] determine if the dynamic type of A is an extension of the dynamic type of MOLD.
RESULT=EXTENDS_TYPE_OF (A, MOLD)
extends_type_of(3f) is TRUE if and only if the dynamic type of A is an extension of the dynamic type of MOLD.
A shall be an object of extensible type. If it is a pointer, it shall not have an undefined association status. MOLD shall be an object of extensible type. If it is a pointer, it shall not have an undefined association status.
RESULT Default logical scalar. VALUE If MOLD is unlimited polymorphic and is either a disassociated pointer or unallocated allocatable variable, the result is true; otherwise if A is unlimited polymorphic and is either a disassociated pointer or unallocated allocatable variable, the result is false; otherwise the result is true if and only if the dynamic type of A is an extension type of the dynamic type of MOLD. The dynamic type of a disassociated pointer or unallocated allocatable variable is its declared type.
Inquiry function.
extends_type_of (3) | March 11, 2021 |