Fortran Wiki
Design patterns

This page is for discussing design patterns in relation to Fortran.

Singleton Pattern

The singleton pattern is used to ensure that a class has only one instance, and to provide a global point of access to it. Arjen Markus has noted that Fortran’s modules are, by definition, an implementation of the singleton pattern.