Node:LongestBool, Next:, Previous:LongCard, Up:Reference



LongestBool

Synopsis


type
  LongestBool = Boolean attribute (Size = BitSizeOf (LongestInt));

Description

The intrinsic LongestBool represents boolean values, but occupies the same memory space as a LongestInt. It is used when you need to define a parameter or record that conforms to some external library or system specification.

Conforming to

LongestBool is a GNU Pascal extension.

Example


program LongestBoolDemo;
var
  a: LongestBool;
begin
  LongestInt (a) := 1;
  if a then WriteLn ('Ord (True) = 1')
end.

See also

Boolean (Intrinsic), Boolean, True, False, CBoolean, ByteBool, ShortBool, MedBool, WordBool, LongBool.