On 01.07.2019 18:21, Ryan Joseph wrote:
On Jul 1, 2019, at 12:08 PM, Ondrej Pokorny <laza...@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

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to