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


8.5 Renaming Declarations -- TOC

(1)
A renaming_declaration declares another name for an entity, such as an object, exception, package, subprogram, entry, or generic unit. Alternatively, a subprogram_renaming_declaration can be the completion of a previous subprogram_declaration.
Syntax
(2)
       renaming_declaration ::=
             object_renaming_declaration
           | exception_renaming_declaration
           | package_renaming_declaration
           | subprogram_renaming_declaration
           | generic_renaming_declaration
Dynamic Semantics
(3)
The elaboration of a renaming_declaration evaluates the name that follows the reserved word renames and thereby determines the view and entity denoted by this name (the renamed view and renamed entity). A name that denotes the renaming_declaration denotes (a new view of) the renamed entity.

(4)
(5)
(6)
(7)
          subtype Mode is Ada.Text_IO.File_Mode;

Subclauses

  1. Object Renaming Declarations
  2. Exception Renaming Declarations
  3. Package Renaming Declarations
  4. Subprogram Renaming Declarations
  5. Generic Renaming Declarations


Prev | Up | Next | 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