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

9.46 Comp

Synopsis

 
type
  Comp = LongInt;

Description

`Comp' is a signed integer type which is longer than `Integer'. On most platforms it is 64 bits wide and thus has a range of `-9223372036854775808..9223372036854775807'.

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

Conforming to

`Comp' is a Borland Pascal extension.

In some contexts, Borland Pascal treats `Comp' as a "real" type -- this behaviour is not supported by GPC.

Example

 
program CompDemo;
var
  a: Comp;
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