[fpc-pascal] PtrInt - possible candidate to be marked as deprecated

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Mar 18 16:29:44 CET 2015

Mattias Gaertner wrote on Wed, 18 Mar 2015:

> On Wed, 18 Mar 2015 14:53:50 +0000
> Graeme Geldenhuys <mailinglists at geldenhuys.co.uk> wrote:
>> Based on what the documentation says "introduction of ptrint type was a
>> mistake", shouldn't the PtrInt type be marked as deprecated in FPC 3.0.0
>> and removed in a later release like 3.0.2 or 3.2.0?
>> http://www.freepascal.org/docs-html/rtl/system/ptrint.html
> PtrInt is sometimes used in this case:
> TList stores arbitrary Pointers. To store an arbitrary integer you cast
> it with PtrInt.

Or PtrUInt. The remark in the docs (which I didn't add, for the  
record) is specifically about the signed variant.


More information about the fpc-pascal mailing list