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

Nikolay Nikolov nickysn at gmail.com
Wed Mar 18 16:14:53 CET 2015


On 18.3.2015 г. 16:53, Graeme Geldenhuys 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
I don't think it should be removed. It's more of a "if you use it, you 
must know what you're doing" type of thing IMO. It's useful for e.g. 
obtaining the result of a pointer difference or storing a signed offset 
relative to a memory address.

Nikolay



More information about the fpc-pascal mailing list