Ada Programming/Keywords/declare
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.
See also
Wikibook
Ada 95 Reference Manual
- 2.9 Reserved Words (Annotated)
- 5.6 Block Statements (Annotated)
- Annex P (informative) Syntax Summary (Annotated)
Ada 2005 Reference Manual
- 2.9 Reserved Words (Annotated)
- 5.6 Block Statements (Annotated)
- Annex P (informative) Syntax Summary (Annotated)
Ada Quality and Style Guide
| Ada Keywords | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|