[fpc-devel] [] property overloads
Ondrej Pokorny
lazarus at kluug.net
Mon Jul 1 18:01:44 CEST 2019
On 01.07.2019 17:38, Ryan Joseph wrote:
>> On Jul 1, 2019, at 7:56 AM, Ondrej Pokorny <lazarus at kluug.net> wrote:
>>
>> type
>> TValue = record A: Integer end;
>> TMyClass = class
>> function GetValue(index: integer): TValue;
>> function GetValue(index: string): TValue;
>> property Index[aindex: integer]: TValue read GetValue; default;
>> end;
> And btw what was decided about the syntax? I think it was determined it was valid in Delphi but is it going to be allowed in ObjFPC mode? If that’s how Delphi does it I don’t see why they allow the [] to contain any parameters at all since they don’t map to anything.
I don't know. I just reported it as a bug.
Ondrej
More information about the fpc-devel
mailing list