133. Unlimited polymorphic pointer can point to any type.#

topic: Generic programming

Note

This tip is a draft1.

An unlimited polymorphic pointer p

class(*), pointer :: p

can point to any type of variable or object and can be passed as a class() or class(), pointer argument. Otherwise it must be disambiguated with SELECT TYPE before being used.



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.