CERN Accelerating science

This website is no longer maintained. Its content may be obsolete. Please visit http://home.cern/ for current CERN information.



next up previous
Next: Pointers in expressions Up: Fortran 90 Tutorial: Previous: Basics

Association

A pointer's association status is one of

Some care has to be taken not to leave a pointer ``dangling'' by use of DEALLOCATE on its target without NULLIFYing any other pointer referring to it.

The intrinsic function ASSOCIATED can test the association status of a defined pointer:

               IF (ASSOCIATED(pointer)) THEN
or between a defined pointer and a defined target (which may, itself, be a pointer):

               IF (ASSOCIATED(pointer, target)) THEN



Janne Saarela
Tue May 16 13:43:26 METDST 1995