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

9.34 ByteInt

Synopsis

 
type
  ByteInt = Integer (BitSizeOf (Byte));

Description

`ByteInt' is a signed integer type which is one "unit" wide. On most platforms one unit has 8 bits, therefore the type is prefixed "byte-" and usually has a range of `-128..127'.

`ByteInt' in GNU Pascal is compatible to `signed char' in GNU C.

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

Conforming to

`ByteInt' is a GNU Pascal extension.

`ByteInt' in GNU Pascal corresponds to section 9.251 ShortInt in Borland Pascal.

Example

 
program ByteIntDemo;
var
  a: ByteInt;
begin
  a := 42;
  WriteLn (a)
end.

See also

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