[fpc-devel] var param as property index?
dmitry boyarintsev
skalogryz.lists at gmail.com
Sun May 30 19:32:25 CEST 2010
On Sun, May 30, 2010 at 5:29 PM, Martin <lazarus at mfriebe.de> wrote:
> I don't think the following is intended? (it compiles with trunc).
>
> Note the property index is a var param
>
>
> TForm1 = class(TForm)
> private
> function GetFoo(var Index: Integer): Boolean;
> public
> property Foo[var Index: Integer]: Boolean read GetFoo;
> end;
>
does FPC compile the following, in this case:
var
f : TForm1;
writeln(f.Foo[0]);
thanks,
dmitry
More information about the fpc-devel
mailing list