1.0.4 Declared Block - JulTob/Ada GitHub Wiki

Declared block

🔍 Is just a block of code that can be modularized. Stuff declared inside the declaration segment can be used inside the statements.

declare 
 --  Declarations
 begin 
  --  Statements
  exception
  --  Handlers
  end;    
My_Named _Block: declare -- Named Block
 --  Declarations
 begin 
  --  Statements
  exception
  --  Handlers
  end;    

You can nest these into procedures, functions, and other blocks.