Purpose
The NULLIFY statement causes pointers to become disassociated.
Format
>>-NULLIFY--(--pointer_object_list--)-------------------------->< |
Rules
A pointer_object must have the POINTER attribute.
Tip |
---|
Always initialize a pointer with the NULLIFY statement,
pointer assignment,
|
TYPE T INTEGER CELL TYPE(T), POINTER :: NEXT ENDTYPE T TYPE(T) HEAD, TAIL TARGET :: TAIL HEAD%NEXT => TAIL NULLIFY (TAIL%NEXT) END
Related Information