Extensions to static scoping

  • Authors:
  • G. V. Cormack

  • Affiliations:
  • -

  • Venue:
  • Proceedings of the 1983 ACM SIGPLAN symposium on Programming language issues in software systems
  • Year:
  • 1983

Quantified Score

Hi-index 0.00

Visualization

Abstract

Scope rules are presented as they appear in the language L, which is currently under development at McGill. These rules permit a programmer to specify explicitly the duration and visibility of all objects. Such specification can be used to declare variables or to create data structures which persist from one invocation of a block to the next. In addition, the data may be caused to persist from one run of the program to the next, obviating temporary files which are outside the scope and control of the programming language. The visibility of an object may also be specified to be larger than the block that contains its declaration. This facility allows the programmer to export some objects, yet keep others private. Finally, a facility for call-site visibility is presented that provides some of the expressive power of dynamic scoping and macros without their inherent type insecurity.