Implementation and application of a function data type

  • Authors:
  • Mark B. Wells

  • Affiliations:
  • Los Alamos Scientific Laboratory of the University of California, Los Alamos, New Mexico

  • Venue:
  • AFIPS '77 Proceedings of the June 13-16, 1977, national computer conference
  • Year:
  • 1977

Quantified Score

Hi-index 0.00

Visualization

Abstract

The modularization construct of subroutine, function, or procedure is well established in the scientific programming languages of today. In most cases, however, the construct is static in that once a function is defined and named it remains unchanged throughout the scope of its definition. We are concerned in this paper with the generalization to a function data type, that is, to the situation where one may have variables of type function which assume different specific procedures as their value within their scope. Notationally, implementation of the concept is made feasible by use of a juxtaposition operator. Computationally, the concept derives its usefulness from use of the contour model which allows activation record retention. Examples are given which show that the function data type concept subsumes less general techniques such as "coroutines" and "stream functions."