Site Menu Project Specification Implementation Recommendations Reference Needs Updating Work in Progress Wastebasket Wiki Manual |
Import AggregatorsThe following two approaches to import aggregation were discussed and rejected: Re-Export by DefaultAny module imported by a module might automatically be re-exported.
Implicit Re-ExportA definition part which imports one or more modules but exports no items on its own might be deemed to have the purpose of re-exporting all the imported modules ... DEFINITION MODULE Collections; IMPORT Stack, Queue, BinarySearchTree, Trie, HashTable, DynamicArray; END Collections.
Importing the AggregatorImporting MODULE UseCollections; IMPORT Collections; VAR stack : Stack; ... stack := Stack.New(size, status); ... END UseCollections. |