Ada Programming/Keywords/declare

< Ada Programming‎ | Keywords

Ada Lovelace 1838.jpg

This keyword is used to mark beginning of the declarative part of a block.

Block_Name :
   declare
      A_Variable : The_Type;
   begin
      Use A_Variable
   end Block_Name;

The Block_Name is optional.

Contents

See alsoEdit