[fpc-pascal] History of the Cardinal data type?

Michael Van Canneyt michael at freepascal.org
Tue Mar 29 17:20:20 CEST 2016

On Tue, 29 Mar 2016, Dmitry Boyarintsev wrote:

> On Tue, Mar 29, 2016 at 11:06 AM, Graeme Geldenhuys <
> mailinglists at geldenhuys.co.uk> wrote:
>> So why does the Object Pascal language have a Cardinal type? Why
>> couldn't LongWord be used instead?
> In Delphi world LongWord is 64-bit on 64-bit iOS platform and it is 32-bit
> on 64-bit Windows platform.

Which is quite confusing and a really bad decision.
Basic integer types should not depend on the OS. On the CPU, yes.


More information about the fpc-pascal mailing list