[fpc-pascal] History of the Cardinal data type?
Marco van de Voort
marcov at stack.nl
Tue Mar 29 17:13:08 CEST 2016
In our previous episode, Graeme Geldenhuys said:
> Just curious. What is the history behind the Cardinal data type. As per
> the FPC documentation, it is always mapped to the LongWord type. I
> presume it is the same in Delphi.
Cardinal is the Wirthian designation for the default unsigned integer,
just like "integer" is for signed.
The Delphi side of things is more convoluted because pre-int64 Delphis had
31-bits Cardinals.
> So why does the Object Pascal language have a Cardinal type? Why
> couldn't LongWord be used instead?
See above. Variable size type vs fixed size type.
More information about the fpc-pascal
mailing list