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

Dmitry Boyarintsev skalogryz.lists at gmail.com
Tue Mar 29 17:17:25 CEST 2016


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.

http://docwiki.embarcadero.com/RADStudio/XE8/en/What's_New#Changes_in_LongInt_and_LongWord_Size_for_64-bit_iOS_Platforms

Who know what it would be for future Linux 64 target?!
Thus using LongWord as 32-bit for Delphi is quite volatile.

Cardinal is instead always 32-bit
http://docwiki.embarcadero.com/Libraries/XE8/en/System.Cardinal

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160329/c6b843bd/attachment.html>


More information about the fpc-pascal mailing list