Recent

Author Topic: tComponent.TagPointer  (Read 4571 times)

Martin V

  • Full Member
  • ***
  • Posts: 139
tComponent.TagPointer
« on: December 19, 2010, 11:15:31 pm »
Hello,

I would like to have a very simple additional property for tComponent. The "Tag" property let you store a user longint value (4 bytes). I often used this "Tag" as a pointer where I store user data in a record. But this does not work on 64 bit OS with 8 byte pointers. It would be the simpliest way to create an additional property TagPointer or TagPtr : pointer. There's another proposal to change the Tag property
http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/msg14578.html
but this makes problems with old code. I would prefer an additional property and variable.

M. Vieregg

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: tComponent.TagPointer
« Reply #1 on: December 20, 2010, 01:16:49 pm »
tag already has been extended to 64-bit out of Delphi compatibility a few weeks ago

 

TinyPortal © 2005-2018