next up previous contents
Next: USE ONLY Statement Up: Modules Previous: Encapsulation - Stack example

 

The USE Renames Facility

The USE statement names a module whose public definitions are to be made accessible.

Syntax:

 
USE < module-name > &

[,< new-name > => < use-name >...]

module entities can be renamed,

    USE Stack, IntegerPop => Pop

The module object Pop is renamed to IntegerPop when used locally.

For more information, click here gif


next up previous contents
Next: USE ONLY Statement Up: Modules Previous: Encapsulation - Stack example

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.