Design patterns

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.