8.5.3 Package Renaming Declarations
1
Syntax
2/3
Legality Rules
3
The renamed entity shall be a package.
3.1/2
3.a.1/2
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
4
4.1/2
4.a.1/2
Examples
5
Example of renaming
a package:
6
package TM renames Table_Manager;
Wording Changes from Ada 95
6.a/2
{
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.
Extensions to Ada 2005
6.b/3
Ada 2005 and 2012 Editions sponsored in part by Ada-Europe