Previous: Simple Referable Data Type Examples, Up: Definition Examples


3.4.2 Complex Referable Data Type Example

Consider some data type describing objects holding data, some container of sorts. Give it a name, so it can be better referred. Queue.

Say that references (to bits of program data) may be stored with the queues. Say that references to queues themselves may be stored with objects (like the very queues).