Transformational Intrinsic Function (Generic): Initializes a pointer as disassociated when it is declared. This is a new intrinsic function in Fortran 95.
Syntax
Results:
The result type is the same as mold, if present; otherwise, it is determined as follows:
If NULL ( ) Appears... | Type is Determined From... |
---|---|
On the right side of pointer assignment | The pointer on the left side |
As initialization for an object in a declaration | The object |
As default initialization for a component | The component |
In a structure constructor | The corresponding component |
As an actual argument | The corresponding dummy argument |
In a DATA statement | The corresponding pointer object |
The result is a pointer with disassociated association status.
USE DFWIN, NULL0 => NULL
This example lets you use both NULL0 and NULL( ) in the
same program unit with no conflict.
Examples
Consider the following:
INTEGER, POINTER :: POINT1 => NULL( )
This statement defines the initial association status of POINT1 to be disassociated.