Node:CBoolean, Next:Char, Previous:case, Up:Reference
(Under construction.)
type CBoolean { built-in type }
CBoolean
is a Boolean type. In GNU Pascal it is compatible to
_Bool
in GNU C (which is defined as bool
in
stdbool.h
). This compatibility is the reason why
CBoolean
exists.
CBoolean
is a GNU Pascal extension.
program CBooleanDemo; var a: CBoolean; begin a := True; if Ord (a) = 1 then WriteLn ('Ord (True) = 1') end.