[fpc-pascal] History of the Cardinal data type?
florian at freepascal.org
Wed Mar 30 08:50:52 CEST 2016
Am 30.03.2016 um 03:06 schrieb Graeme Geldenhuys:
> Thanks Marco, interesting history lesson. ;-)
> On 2016-03-29 22:16, Marco van de Voort wrote:
>> Moreover since shorter types are not always faster, I think it is better to
>> forget all this, and in new code use INTEGER for the variable types, where
>> range doesn't matter (much) and (u)int<xx> for the rest.
> I already tend to use Integer for most code, but the code I'm currently
> working on has an extensive amount of record structures used to read a
> complex binary data file. The documentation for the data file is
> primarily in C
In this case, you should probably use the types from the ctypes unit.
> and uses types like SHORT, USHORT, LONG etc. These
> translated easily to the SmallInt, Word, LongWord etc types,
More information about the fpc-pascal