Go to the first, previous, next, last section, table of contents.

IMPORT Statement

The IMPORT statement allows for two kinds of syntaxes: 

The IMPORT statement makes visible declarations in an interface, such as procedures and types. IMPORT statements must appear after the MODULE or INTERFACE statement and before any declarations.

When using declarations imported from another module, the non-local declaration name must be qualified with the name of the module it was imported from unless the second form of the IMPORT statement is used.


Example

Here is a simple interface.

Here is a client that imports it the usual way.

Here is another client that imports only the Size declaration from Box.


Go to the first, previous, next, last section, table of contents.