CP2003 Lecture Notes - Dynamic Storage

These lecture notes are based on chapter 3 in ``Programming Language Concepts and Paradigms'' by David Watt.

Heap vs. Stack

Dead Objects

Persistent Variables

A persistent varible is a variable that lives beyond the execution of a program.

   { Pascal Example }
   program curt(a_file_name)  { a_file_name is a persistent file variable! }
     ....
   end.
But why should files be different than other types of variables? This is a violation of the type completeness principle. Research is underway to add persistence to programming languages.



Last updated Wed Aug 27 07:45:36 EST 1997.
Copyright © 1997. Curtis E. Dyreson. All rights reserved.