Another way to avoid name clashes is to only use those objects which are necessary. It has the following form:
USE < module-name > [ ONLY:
< only-list >...]
The < only-list > can also contain renames (=>
).
For example,
USE Stack, ONLY:pos, & IntegerPop => PopOnly pos and Pop are made accessible. Pop is renamed to IntegerPop.
The ONLY statement gives the compiler the option of including only those entities specifically named.
For more information, click here