Go to the first, previous, next, last section, table of contents.


8.5.5 Generic Renaming Declarations

    A generic_renaming_declaration is used to rename a generic unit.

    Syntax

  1. 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

  2. The renamed entity shall be a generic unit of the corresponding kind.

    Static Semantics

  3. A generic_renaming_declaration declares a new view of the renamed generic unit.

    NOTES

  4. (15) Although the properties of the new view are the same as those of the renamed view, the place where the generic_renaming_declaration occurs may affect the legality of subsequent renamings and instantiations that denote the generic_renaming_declaration, in particular if the renamed generic unit is a library unit, See section 10.1.1 Compilation Units - Library Units.

    Examples

  5. Example of renaming a generic unit:
  6. generic package Enum_IO renames Ada.Text_IO.Enumeration_IO;
    --  See section A.10.10 Input-Output for Enumeration Types
    


Go to the first, previous, next, last section, table of contents.