On Sun, May 30, 2010 at 5:29 PM, Martin <laza...@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 _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel