Sign in Join
FPDoc Onlineexperiment

Integer type

In unit System

A signed 16-bits integer.

Declaration

pascal
Integer = SmallInt

Description

The system unit defines Integer as a signed 16-bit integer. But when DELPHI or OBJFPC mode are active, then the objpas unit redefines Integer as a 32-bit integer.

Note that due to the way the language modes are implemented, if you refer to integer with the fully qualified name System.Integer, you will still get a 16-bit integer.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.