[fpc-devel] Component FTag and Tag should be int64
Michael Van Canneyt
michael at freepascal.org
Tue Nov 23 20:20:11 CET 2010
On Tue, 23 Nov 2010, Sergei Gorelkin wrote:
> Andrew Brunner пишет:
>> Ok.
>> First off tag should be revised to match Delphi.
>> Second. I need data property on Tcomponent
>> I propose having an additional directive for this mechanism kind of like
>> the option for using large strings. Components have data property. This
>> way I can just get it into the Laz dialog.
>>
>> How about that?
>>
> If we start adding new properties, directives, keywords etc on every such
> request, the end result will deserve only placing into trash.
> TComponent already allows
> a) Using Tag property to store indices into array or other container of data
> of any type;
> b) Using Components property to store any number of child components, which
> are owned, named, can notify and be notified of insertion and deletion.
>
> Regarding the Tag type, the fact we're tied up with that "Delphi
> compatibility" is quite unfortunate. I wonder how they are going to maintain
> compatibility between 32 and 64 bit versions.
They do the same as we:
They introduced something like PtrInt (using of course a different name)
and made tag equal to this type.
Instead of biting the bullet and telling people to code properly.
But like most companies, they are a bit of a prostitute in this regard.
Michael.
More information about the fpc-devel
mailing list