Prev | Up | ____ | Back | Forward
TOC -- / --.-- / --.--.-- | Index | Search | Syntax | Help


8.5.5 Generic Renaming Declarations

(1)
A generic_renaming_declaration is used to rename a generic unit.
Syntax
(2)
       generic_renaming_declaration ::=
           generic package       defining_program_unit_name renames generic_package_name;
         | generic procedure     defining_program_unit_name renames generic_procedure_name;
         | generic function      defining_program_unit_name renames generic_function_name;
Legality Rules
(3)
The renamed entity shall be a generic unit of the corresponding kind.
Static Semantics
(4)
A generic_renaming_declaration declares a new view of the renamed generic unit.

(5)
Examples
(6)
Example of renaming a generic unit:
(7)
       generic package Enum_IO renames Ada.Text_IO.Enumeration_IO;  -- see A.10.10

Prev | Up | ____ | Back | Forward
TOC -- / --.-- / --.--.-- | Index | Search | Syntax | Help

Ada WWW Home -- Email comments, additions, corrections, gripes, kudos, etc. to:

Magnus Kempe -- Magnus.Kempe@di.epfl.ch
Copyright statement
Page last generated: 95-03-12