[Lazarus] TTreenode.data
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Wed Sep 11 15:08:58 CEST 2013
Richard Mace schrieb:
> Thanks for the reply.
> Can't it be type casted because both a pointer and integer are 4 bytes?
Dunno about Lazarus, but casts work in Delphi.
Hint: pointers may be longer than integers, but never shorter. So you
won't loose information when e.g. storing an 32 bit integer into a 64
bit pointer field. Consequently the opposite direction, i.e. storing an
pointer in an integer field, may not work.
That's why newer Delphi versions also have the Tag properties expanded,
so that it's possible to store pointers there.
DoDi
More information about the Lazarus
mailing list