package Standard is pragma Pure(Standard);
type Boolean is (False, True);
-- The predefined relational operators -- for this type are as follows:
-- function "=" (Left, Right : Boolean) return Boolean; -- function "/=" (Left, Right : Boolean) return Boolean; -- function "<" (Left, Right : Boolean) return Boolean; -- function "<=" (Left, Right : Boolean) return Boolean; -- function ">" (Left, Right : Boolean) return Boolean; -- function ">=" (Left, Right : Boolean) return Boolean;
-- The predefined logical operators and the predefined -- logical negation operator are as follows:
-- function "and" (Left, Right : Boolean) return Boolean; -- function "or" (Left, Right : Boolean) return Boolean; -- function "xor" (Left, Right : Boolean) return Boolean;
-- function "not" (Right : Boolean) return Boolean;
-- The integer type root_integer is predefined. -- The corresponding universal type is universal_integer.
type Integer is range implementation-defined;
subtype Natural is Integer range 0 .. Integer'Last; subtype Positive is Integer range 1 .. Integer'Last;
-- The predefined operators for type Integer are as follows:
-- function "=" (Left, Right : Integer'Base) return Boolean; -- function "/=" (Left, Right : Integer'Base) return Boolean; -- function "<" (Left, Right : Integer'Base) return Boolean; -- function "<=" (Left, Right : Integer'Base) return Boolean; -- function ">" (Left, Right : Integer'Base) return Boolean; -- function ">=" (Left, Right : Integer'Base) return Boolean;
-- function "+" (Right : Integer'Base) return Integer'Base; -- function "-" (Right : Integer'Base) return Integer'Base; -- function "abs" (Right : Integer'Base) return Integer'Base;
-- function "+" (Left, Right : Integer'Base) -- return Integer'Base; -- function "-" (Left, Right : Integer'Base) -- return Integer'Base; -- function "*" (Left, Right : Integer'Base) -- return Integer'Base; -- function "/" (Left, Right : Integer'Base) -- return Integer'Base; -- function "rem" (Left, Right : Integer'Base) -- return Integer'Base; -- function "mod" (Left, Right : Integer'Base) -- return Integer'Base;
-- function "**" (Left : Integer'Base; Right : Natural) return Integer'Base;
-- The specification of each operator for the type -- root_integer, or for any additional predefined integer -- type, is obtained by replacing Integer by the name of the type -- in the specification of the corresponding operator of the type -- Integer. The right operand of the exponentiation operator -- remains as subtype Natural.
-- The floating point type root_real is predefined. -- The corresponding universal type is universal_real.
type Float is digits implementation-defined;
-- The predefined operators for this type are as follows:
-- function "=" (Left, Right : Float) return Boolean; -- function "/=" (Left, Right : Float) return Boolean; -- function "<" (Left, Right : Float) return Boolean; -- function "<=" (Left, Right : Float) return Boolean; -- function ">" (Left, Right : Float) return Boolean; -- function ">=" (Left, Right : Float) return Boolean;
-- function "+" (Right : Float) return Float; -- function "-" (Right : Float) return Float; -- function "abs" (Right : Float) return Float;
-- function "+" (Left, Right : Float) return Float; -- function "-" (Left, Right : Float) return Float; -- function "*" (Left, Right : Float) return Float; -- function "/" (Left, Right : Float) return Float;
-- function "**" (Left : Float; Right : Integer'Base) return Float;
-- The specification of each operator for the type root_real, -- or for any additional predefined floating point type, is -- obtained by replacing Float by the name of the type in the -- specification of the corresponding operator of the type Float.
-- In addition, the following operators are predefined for -- the root numeric types:
function "*" (Left : root_integer; Right : root_real) return root_real;
function "*" (Left : root_real; Right : root_integer) return root_real;
function "/" (Left : root_real; Right : root_integer) return root_real;
-- The type universal_fixed is predefined. -- The only multiplying operators defined between -- fixed point types are
function "*" (Left : universal_fixed; Right : universal_fixed) return universal_fixed;
function "/" (Left : universal_fixed; Right : universal_fixed) return universal_fixed; -- The declaration of type Character is based on the standard -- ISO 8859-1 character set.
-- There are no character literals corresponding to the -- positions for control characters. They are indicated in -- italics in this definition. See section 3.5.2 Character Types. type Character is (nul, soh, stx, etx, eot, enq, ack, bel, bs, ht, lf, vt, ff, cr, so, si, dle, dc1, dc2, dc3, dc4, nak, syn, etb, can, em, sub, esc, fs, gs, rs, us, ' ', '!', '"', '#', '$', '%', '&', ''', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', del, reserved_128, reserved_129, bph, nbh, reserved_132, nel, ssa, esa, hts, htj, vts, pld, plu, ri, ss2, ss3, dcs, pu1, pu2, sts, cch, mw, spa, epa, sos, reserved_153, sci, csi, st, osc, pm, apc, ... );
-- The predefined operators for the type Character are the -- same as for any enumeration type. -- The declaration of type Wide_Character is based on the -- standard ISO 10646 BMP character set. The first 256 positions -- have the same contents as type Character. See section 3.5.2 Character Types. type Wide_Character is (nul, soh ... FFFE, FFFF); package ASCII is ... end ASCII; --Obsolescent; See section J.5 ASCII. -- Predefined string types:
type String is array(Positive range <>) of Character; pragma Pack(String);
-- The predefined operators for this type are as follows:
-- function "=" (Left, Right: String) return Boolean; -- function "/=" (Left, Right: String) return Boolean; -- function "<" (Left, Right: String) return Boolean; -- function "<=" (Left, Right: String) return Boolean; -- function ">" (Left, Right: String) return Boolean; -- function ">=" (Left, Right: String) return Boolean;
-- function "&" (Left: String; Right: String) -- return String; -- function "&" (Left: Character; Right: String) -- return String; -- function "&" (Left: String; Right: Character) -- return String; -- function "&" (Left: Character; Right: Character) -- return String;
type Wide_String is array(Positive range <>) of Wide_Character; pragma Pack(Wide_String);
-- The predefined operators for this type correspond to those -- for String
type Duration is delta implementation-defined range implementation-defined;
-- The predefined operators for the type Duration are the -- same as for any fixed point type.
-- The predefined exceptions:
Constraint_Error: exception; Program_Error : exception; Storage_Error : exception; Tasking_Error : exception;
end Standard;
NOTES
Go to the first, previous, next, last section, table of contents.