THE FORMAL SPECIFICATION OF ABSTRACT-DATA-TYPES AND THEIR IMPLEMENTATION IN FORTRAN-90 - IMPLEMENTATION ISSUES CONCERNING THE USE OF POINTERS

Citation
D. Maley et al., THE FORMAL SPECIFICATION OF ABSTRACT-DATA-TYPES AND THEIR IMPLEMENTATION IN FORTRAN-90 - IMPLEMENTATION ISSUES CONCERNING THE USE OF POINTERS, Computer physics communications, 98(1-2), 1996, pp. 167-180
Citations number
8
Categorie Soggetti
Mathematical Method, Physical Science","Physycs, Mathematical","Computer Science Interdisciplinary Applications
ISSN journal
00104655
Volume
98
Issue
1-2
Year of publication
1996
Pages
167 - 180
Database
ISI
SICI code
0010-4655(1996)98:1-2<167:TFSOAA>2.0.ZU;2-T
Abstract
In this paper we continue our investigation into the development of co mputational-science software based on the identification and formal sp ecification of Abstract Data Types (ADTs) and their implementation in Fortran 90. In particular, we consider the consequences of using point ers 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 effici ency of the implementation. We show that the issue of storage recovery cannot be avoided by the ADT user, and present a range of implementat ions of a simple ADT to illustrate various approaches towards satisfac tory storage management. Finally, we propose a set of guidelines for i mplementing 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 gar bage collection which is offered by many object-oriented languages inc luding Eiffel, Java, Smalltalk, and Simula.