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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to