[fpc-devel] Parameters must match exactly?

Jonas Maebe jonas.maebe at elis.ugent.be
Fri May 14 18:12:49 CEST 2010


On 14 May 2010, at 16:52, Mattias Gaertner wrote:

> "var" means, you can do this:
> 
> type
>  TQStrings = class(TStrings)
>  end;
> 
> procedure A(var s: TStrings);
> begin
>  s:=TQStrings.Create;
> end;
> 
> Then your TStringList will no longer be a TStringList. That's why 'var'
> must match exactly.

This is also documented at http://wiki.freepascal.org/User_Changes_Trunk , the first place to look when switching from the fixes branch to trunk.


Jonas


More information about the fpc-devel mailing list