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

Mattias Gaertner nc-gaertnma at netcologne.de
Sat May 20 23:05:11 CEST 2006


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?
What type has Pointer-Pointer?


Mattias




More information about the fpc-pascal mailing list