The formal specification of abstract data types and their implementation in Fortran 90: implementation issues concerning the use of pointers

Autor: Geerd H. F. Diercksen, E. W. S. Schreiner, Norman Scott, Peter Kilpatrick, David Maley
Rok vydání: 1996
Předmět:
Zdroj: Computer Physics Communications. 98:167-180
ISSN: 0010-4655
Popis: In this paper we continue our investigation into the development of computational-science software based on the identification and formal specification of Abstract Data Types (ADTs) and their implementation in Fortran 90. In particular, we consider the consequences of using pointers when implementing a formally specified ADT in Fortran 90. Our aim is to highlight the resulting conflict between the goal of information hiding, which is central to the ADT methodology, and the space efficiency of the implementation. We show that the issue of storage recovery cannot be avoided by the ADT user, and present a range of implementations of a simple ADT to illustrate various approaches towards satisfactory storage management. Finally, we propose a set of guidelines for implementing ADTs using pointers in Fortran 90. These guidelines offer a way gracefully to provide disposal operations in Fortran 90. Such an approach is desirable since Fortran 90 does not provide automatic garbage collection which is offered by many object-oriented languages including Eiffel, Java, Smalltalk, and Simula.
Databáze: OpenAIRE