[fpc-pascal] How to get rid of hint?

Florian Klaempfl florian at freepascal.org
Sat May 20 23:20:41 CEST 2006


Mattias Gaertner wrote:
> On Sat, 20 May 2006 22:50:17 +0200 (CEST)
> marcov at stack.nl (Marco van de Voort) wrote:
> 
>>>   i:=PtrInt(p1)-PtrInt(p2);
>> i:=prtint(p1-p2);
> 
> Thanks. 
> So the trick to get convert a Pointer to an ordinal is to add/subtract
> something. For example:
> i:=PtrInt(p1-nil);
> 
> Is there a better trick?

Let me ask the other way round: what do you want to achieve :)?

> What type has Pointer-Pointer?
> 

PtrInt



More information about the fpc-pascal mailing list