[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
type ShortWord = ShortCard; |
`ShortWord' is an unsigned integer type which is not larger than `Word'. On most platforms it is 16 bits wide and thus has a range of of `0..65535'. It is the same as section 9.250 ShortCard.
`ShortWord' in GNU Pascal is compatible to `short unsigned int' in GNU C.
There are lots of other integer types in GPC, see section 8.2.3 Integer Types.
`ShortWord' is a GNU Pascal extension.
`ShortWord' in GNU Pascal essentially corresponds to `Word' in Borland Pascal and Delphi where it is a 16-bit unsigned integer type.
program ShortWordDemo; var a: ShortWord; begin a := 42; WriteLn (a) end. |
section 8.2.3 Integer Types, section 8.2.10.1 Subrange Types.