|
| 1 | +# Putting Fortran’s object-related features to practical use |
| 2 | + |
| 3 | +:::{toctree} |
| 4 | +:maxdepth: 2 |
| 5 | +:hidden: |
| 6 | +Object-based programming techniques <object_based_programming_techniques> |
| 7 | +Object-oriented programming techniques <object_oriented_programming_techniques> |
| 8 | +Performance and ease of use <performance_and_ease_of_use> |
| 9 | +::: |
| 10 | + |
| 11 | +This article by the late Reinhold Bader (1966-2024) |
| 12 | +describes how advanced Fortran language features can be |
| 13 | +applied toward object-based and object-oriented programming techniques. |
| 14 | +These are, of course, to a significant extent a matter of taste, |
| 15 | +personal style and possibly overarching program design considerations, |
| 16 | +so should be taken with a pinch of salt. |
| 17 | + |
| 18 | +Language features from Fortran 95 and later will be used; those from |
| 19 | +Fortran 2003 and later will also be shortly described. They are |
| 20 | +explained in more detail in e.g., Metcalf, Reid, Cohen and Bader.[^mfe] |
| 21 | +See also [Fortran 95 language |
| 22 | +features](https://en.wikipedia.org/wiki/Fortran_95_language_features) for |
| 23 | +the language's fundamentals; the prerequisite for understanding this article |
| 24 | +is that features explained there are well understood. |
| 25 | + |
| 26 | +Boldface will be used where term definitions are introduced. They are |
| 27 | +additionally annotated by "(not a Fortran term)" or similar if the term |
| 28 | +is not used in the Fortran standard itself, but is in general use in the |
| 29 | +technical literature. |
| 30 | + |
| 31 | +Compilable and runnable example code is available from an external |
| 32 | +[Github repository](https://github.com/reinh-bader/object_fortran). |
| 33 | + |
| 34 | +[^mfe]: |
| 35 | + Metcalf, Michael; Reid, John; Cohen, Malcolm; Bader, Reinhold (2023). |
| 36 | + _Modern Fortran Explained._ Numerical Mathematics and Scientific Computation. |
| 37 | + Oxford University Press. |
| 38 | + [ISBN 978-0-19-887657-1](https://en.wikipedia.org/wiki/Special:BookSources/978-0-19-887657-1). |
0 commit comments