[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
type Comp = LongInt; |
`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.
`Comp' is a Borland Pascal extension.
In some contexts, Borland Pascal treats `Comp' as a "real" type -- this behaviour is not supported by GPC.
program CompDemo; var a: Comp; begin a := 42; WriteLn (a) end. |
section 8.2.3 Integer Types, section 8.2.10.1 Subrange Types.