[fpc-devel] [] property overloads

Ryan Joseph genericptr at gmail.com
Mon Jul 1 18:21:29 CEST 2019



> 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?

Regards,
	Ryan Joseph



More information about the fpc-devel mailing list