[fpc-devel] open array calling [[was: Re: C-block reference syntax (blocker for 3.2)]]
lazarus at mfriebe.de
Thu Dec 12 17:20:40 CET 2019
On 12/12/2019 17:14, Michael Van Canneyt wrote:
> On Thu, 12 Dec 2019, Sven Barth via fpc-devel wrote:
>> For array of const it is not allowed, but any other open array parameter
>> allows it.
> Really, are you sure ? Since when is this allowed ?
It works with a variable in the param list, but not with a constant.
procedure Foo(a: array of integer);
var a: integer;
// foo(1); // fails
And then it also works for array of const
procedure Foo(a: array of const);
var a: TVarRec;
More information about the fpc-devel