[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.259 SmallInt

Synopsis

 
type
  SmallInt = ShortInt;

Description

`SmallInt' is a signed integer type which is not larger than `Integer'. On most platforms it is 16 bits wide and thus has a range of `-32768..32767'. It is the same as `ShortInt' (see section 9.251 ShortInt).

There are lots of other integer types in GPC, see section 8.2.3 Integer Types.

Conforming to

`SmallInt' is a Delphi 2.0 extension.

Example

 
program SmallIntDemo;
var
  a: SmallInt;
begin
  a := 42;
  WriteLn (a)
end.

See also

section 9.251 ShortInt, section 8.2.3 Integer Types, section 8.2.10.1 Subrange Types.



This document was generated by Frank Heckenbach on May, 10 2002 using texi2html