[fpc-devel] [] property overloads

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jul 1 18:10:55 CEST 2019


On Mon, 1 Jul 2019 11:38:31 -0400
Ryan Joseph <genericptr at gmail.com> 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?

Write one thing, mean another? Come on, even Embarcadero can't call
that bug a feature.

Mattias


More information about the fpc-devel mailing list