XL Fortran for AIX 8.1

Language Reference

NULLIFY

Purpose

The NULLIFY statement causes pointers to become disassociated.

Format



>>-NULLIFY--(--pointer_object_list--)--------------------------><
 
 

pointer_object
is a pointer variable name or structure component

Rules

A pointer_object must have the POINTER attribute.

Tip

Always initialize a pointer with the NULLIFY statement, pointer assignment, FORTRAN 95 Begins default initialization FORTRAN 95 Ends or explicit initialization.

Examples

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


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]