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

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Mar 18 17:21:43 CET 2015

On Wed, 18 Mar 2015 15:29:14 +0000
Graeme Geldenhuys <mailinglists at geldenhuys.co.uk> wrote:

> On 2015-03-18 15:23, Tony Whyman wrote:
> > PtrInt is used in that very useful method TApplication.QueueAsync 
> > Call.
> Though I never used the QueueAsync() call myself, but looking at the
> declaration, shouldn't that data type be PtrUInt anyway?  As far as I
> understand Data points to data in memory, which will always be an
> positive (unsigned) value, not so? 

It is arbitrary Data.
The passed method already contains an Object (data in memory). The Data
is usually used as a state or index within the object. But it
can also contain a pointer.


More information about the fpc-pascal mailing list