Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Boolean Type

Like all type expressions, this expression produces a value of the type type.

Boolean-typed values represent one of two possible states: true or false.

Representation

Values of the boolean type are represented as exactly 8 bits. The state false is encoded as 0, and the state true is encoded as 1.

Syntax

boolean_type = bool ;