System.WordBool

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

type WordBool = False..Boolean(65535);

C++

typedef unsigned short       WordBool;         //

Properties

Type Visibility Source Unit Parent
type
typedef
public
System.pas
sysmac.h
System System

Description

Represents a 16-bit predefined Boolean type.

Boolean values are denoted by the predefined constants True and False. A WordBool value is considered False when its ordinality is 0, and True otherwise.

A WordBool variable occupies 2 bytes of memory. Technically, the word size on 64-bit processors is not 2 bytes, but Object Pascal keeps the 2-byte size of WordBool for backward compatibility with the old 16-bit Intel word size.

Note: The ByteBool, WordBool, and LongBool types exist to provide compatibility with other languages and operating system libraries.

See Also