[fpc-devel] Component FTag and Tag should be int64

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Nov 23 06:32:24 CET 2010

michael.vancanneyt at wisa.be schrieb:

>>> The logic is that it is bad programming to use an integer to store a 
>>> pointer.
>> That's why handles are used for that purpose, and on a 64 bit system 
>> handles can have 64 bits as well.
> Handles are equally bad. They are *not* pointers.

A user cannot know, and should not care, what hides behind a handle.

> You should store a pointer in a variable of pointer type, period.

See lParam in messages...


More information about the fpc-devel mailing list