Re: [fpc-pascal] FPC 3.0.0 and constref default param

2016-04-10 Thread Krzysztof
> I can confirm. Seems like is worth to put this on bugtracker :) Reported here: http://bugs.freepascal.org/view.php?id=29992 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.0 and constref default param

2016-04-10 Thread Maciej Izak
2016-03-28 17:49 GMT+02:00 Krzysztof : > This code worked fine on FPC 2.6.4: > > procedure Test(constref AParam: String = 'def_param'); > begin > writeln(AParam); > end; > > But on FPC 3.0.0 I get error: > > unit1.pas(30,42) Error: Default values can only be specified for > value, const and cons

Re: [fpc-pascal] FPC 3.0.0 and constref default param

2016-04-01 Thread Krzysztof
Anyone? :) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] FPC 3.0.0 and constref default param

2016-03-28 Thread Krzysztof
Hi, This code worked fine on FPC 2.6.4: procedure Test(constref AParam: String = 'def_param'); begin writeln(AParam); end; But on FPC 3.0.0 I get error: unit1.pas(30,42) Error: Default values can only be specified for value, const and constref parameters Had to change constref to const but w