Fortran Wiki
Design patterns

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

Design pattern

Some popular design patterns implemented in Fortran (Abstract Factory, Builder, Factory Method, Prototype, Singleton, Adapter, Bridge, Composite, Criteria, Decorator) can be found here.

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.