[Lazarus] Property TComponent.Tag change

Luiz Americo Pereira Camara luizmed at oi.com.br
Tue Nov 23 21:42:05 CET 2010


Michael Van Canneyt escreveu:
>
> Hi,
>
> To remain compatible with the upcoming Delphi 64-bit release, I've 
> changed
> the 'Tag' property type from Integer -> PtrInt.

Do you already has the info that Delphi will do this change?

Luiz
>
> The practical upshot from this is that you can store a pointer in it 
> on all platforms.
> (a widespread abuse of the Tag property).
>
> This potentially breaks some existing code if you rely on Tag having a 
> size of 4 bytes.
>
> If you do not rely on this, it should not break any code. If it does, 
> I'd be interested
> in hearing about it so we can provide workarounds on the website.
>
> Michael.
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>





More information about the Lazarus mailing list