[fpc-devel] [] property overloads
Ondrej Pokorny
lazarus at kluug.net
Mon Jul 1 19:01:00 CEST 2019
On 01.07.2019 18:21, Ryan Joseph wrote:
>> On Jul 1, 2019, at 12:08 PM, Ondrej Pokorny <lazarus at kluug.net> wrote:
>>
>> Very good! Just a short question: does your solution allow one overload without array indexes? It is very useful as a for-in enumerator of the array property:
>>
>> TTest = class
>> public
>> // ...
>> property StringArray[Index: Integer]: string read GetString;
>> property StringArray: TTestObjectEnumerator read GetString;
>> end;
> No, it’s just for [] properties. Is that allowed in Delphi?
No, it is not allowed in Delphi.
Ondrej
More information about the fpc-devel
mailing list