Node:ShortBool, Next:, Previous:shl, Up:Reference



ShortBool

Synopsis


type
  ShortBool = Boolean attribute (Size = BitSizeOf (ShortInt));

Description

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

Conforming to

ShortBool is a GNU Pascal extension.

Example


program ShortBoolDemo;
var
  a: ShortBool;
begin
  ShortInt (a) := 1;
  if a then WriteLn ('Ord (True) = 1')
end.

See also

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