[fpc-devel] TComponent.Tag type

Vincent Snijders vsnijders at quicknet.nl
Thu Mar 20 09:14:33 CET 2008


petr.kristan at epos.cz schreef:
> Hi.
> 
> I'am porting some code from 32 to 64 bit. And I found that
> TComponent.Tag is longint tj. 32bit. In my code is common to store
> Pointer into Tag, but this is in 64bit inpossible.
> 
> What about to change Tag type to SizeInt.

This has been discussed before:
http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg05895.html

It could be problematic if a Tag is streamed and read on different platforms. It 
would better to introduce a new (non streamable) SizeInt property.

Vincent



More information about the fpc-devel mailing list