FF) should be used. The normal end-of-line sequence is used, which may be
CR, depending on the host system. An optional
16#1A#) may be present as the last character in the file on hosts using that character as file terminator.
ifstatements, loops, and
casestatements. For exact information on required spacing between lexical elements, see file style.adb.
ALIword which stands for Ada Library Information and is by convention always written in upper-case when used in entity names.
Iis too easily confused with
1in some fonts. Similarly don't use the variable
O, which is too easily mistaken for the number
1_000_000 16#8000_0000# 3.14159_26535_89793_23846
Digitsare capitalized when used as attribute_designator.
--followed by two spaces. The only exception to this rule (i.e. one space is tolerated) is when the comment ends with a single space followed by
--. It is also acceptable to have only one space between
--and the start of the comment when the comment is at the end of a line, after some Ada code.
--(unlike the normal rule, which is to use entirely blank lines for separating comment paragraphs). The comment starts at same level of indentation as code it is commenting.
z : Integer; -- Integer value for storing value of z -- -- The previous line was a blank line.
begin -- Comment for the next statement A := 5; -- Comment for the B statement B := 6; end;
My_Identifier := 5; -- First comment Other_Id := 6; -- Second comment