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

Michael Van Canneyt michael at freepascal.org
Wed Mar 18 16:19:06 CET 2015

On Wed, 18 Mar 2015, Nikolay Nikolov wrote:

> 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.


I didn't add this sentences in the docs, and I will remove them,
and replace them with with a warning as suggested.


More information about the fpc-pascal mailing list