8.5.3 Package Renaming Declarations
Syntax
Legality Rules
The renamed entity shall be a package.
Discussion: The use of a renaming that
designates a limited view is restricted to locations where we know whether
the view is limited or nonlimited (based on a
with_clause).
We don't want to make an implicit limited view, as those are not transitive
like a regular view. Implementations should be able to see all limited
views needed based on the
context_clause.
Static Semantics
Examples
Example of renaming
a package:
package TM renames Table_Manager;
Wording Changes from Ada 95
{
AI95-00217-06}
{
AI95-00412-01}
Uses of renamed limited views of packages can only be used within the
scope of a with_clause for the renamed package.