186. Deallocating a derived type deallocates its allocatable components.#

topic: Derived types

Note

This tip is a draft1.

Deallocating a derived type deallocates its allocatable components but not its pointer components, which can be deallocated manually before the derived type is. An INTENT(OUT) derived type dummy argument has its allocatable components deallocated.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.