[fpc-devel] Propose: change TComponent.Tag from longint to PtrInt
peter green
plugwash at P10Link.net
Mon Sep 4 04:20:52 CEST 2006
> I'd like to propose change TComponent.Tag type from longint to PtrInt.
> I know it's not a good programing practice, but sometimes this property
> can be used to hold pointers.
> In 32bit there's not many problems since pointer and longint have the
> same size, but the thing changes in 64 bit.
> The choice of PtrInt has the benefit of not modifying nothing in 32bit,
> while in 64bit you getting a integer of the same size of pointers.
>
> What do you think?
do it, this was a very common use of tag in lots of delphi code and i can't
see any problems with having it as a 64 bit type.
More information about the fpc-devel
mailing list