411 REFERENCE · Wikibooks
Ada Programming/Keywords/begin
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Keywords begin
__TOC__
The begin keyword in Ada is almost synonymous with the { in C/C++/Java. In the paradigm of structured programming languages, a keyword or symbol is often needed to delimit the beginning of the body from the element (i.e. if, elsif, for loop, while loop) to which it pertains.
For the case of subprograms, packages, tasks and blocks this word is begin.
For example,
procedure Some_Procedure is
begin
Do_Something;
Do_Something_Else;
end Some_Procedure;
The begin keyword is always closed with the end keyword. The opposite is not true in Ada.
See also
Wikibook
Ada Programming
Ada Programming/Keywords
Ada Programming/Tasking
Ada Reference Manual
2 9 Reserved Words
P (informative) Syntax Summary
9 8 Abort of a Task - Abort of a Sequence of Statements
E 1 Partitions
Ada Quality and Style Guide
3 1 3 Capitalization
Begin
Keywords:begin