[fpc-pascal] overloaded property index

Luca Olivetti luca at ventoso.org
Sat Aug 13 16:32:05 CEST 2016


El 13/08/16 a les 00:28, Jonas Maebe ha escrit:
> On 12/08/16 22:51, Luca Olivetti wrote:
>> El 12/08/16 a les 20:40, Jonas Maebe ha escrit:
>>> On 12/08/16 20:32, Sven Barth wrote:
>>>> Better don't rely on it then. If at all it would be implemented
>>>> properly
>>>> (and for Delphi compatibility it probably will).
>>>
>>> According to the bug report mentioned in the first message of this
>>> thread, Delphi only supports overloading for default properties.
>>
>> Is there a reason for implementing it "properly" only for the default
>> property? (apart from delphi compatibility).
>> I don't see a difference between default and other properties for this
>> particular issue.
>
> In many cases, when we implement something like that differently than
> Delphi, in hindsight there indeed was a good reason for the original
> Delphi behaviour even if we didn't see it immediately. So I'm very wary
> to stray from that path nowadays.

Oh, well, I'll change the code to use a method call instead of a 
property then.
I still don't see the rationale though.

Bye
-- 
Luca




More information about the fpc-pascal mailing list