[fpc-devel] Propose: change TComponent.Tag from longint to PtrInt

Micha Nelissen micha at neli.hopto.org
Wed Sep 6 19:04:20 CEST 2006

Michael Van Canneyt wrote:
> If you want to store objects, use a TCollection, and store
> TCollectionItem.ID in the component tag. ID is a unique identifier, even
> when elements are added and removed from the collection.
> Slightly more work, but clean and portable.

And much slower.


More information about the fpc-devel mailing list