Next: Declarations and Types, Previous: General, Up: Top [Contents][Index]
HT
,
VT
, FF
)
should be used.
The normal end-of-line sequence is used, which may be
LF
, CR/LF
or CR
,
depending on the host system. An optional SUB
(16#1A#
) may be present as the
last character in the file on hosts using that character as file terminator.
if
statements, loops, and
case
statements.
For exact information on required spacing between lexical
elements, see file style.adb.
ALI
word which stands for Ada Library
Information and is by convention always written in upper-case when
used in entity names.
procedure Find_ALI_Files;
I
, use J
instead; I
is too
easily confused with 1
in some fonts. Similarly don’t use the
variable O
, which is too easily mistaken for the number 0
.
1_000_000 16#8000_0000# 3.14159_26535_89793_23846
return else
Access
, Delta
and Digits
are
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
, else
, loop
):
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
Next: Declarations and Types, Previous: General, Up: Top [Contents][Index]